Skip to content

Commit

Permalink
Typo corrections - comments and xml doc comments (#1163)
Browse files Browse the repository at this point in the history
* Minor comment and XMLDoc comment typo correction
  • Loading branch information
sunyudai committed Jul 17, 2024
1 parent e4b93e9 commit 7ef8414
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Source/Basic Shapes/SvgLine.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Svg
namespace Svg
{
/// <summary>
/// Represents and SVG line element.
/// Represents an SVG line element.
/// </summary>
[SvgElement("line")]
public partial class SvgLine : SvgMarkerElement
Expand Down
14 changes: 7 additions & 7 deletions Source/SvgElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ protected internal string ElementName
{
// The SvgDocument does not have SvgElement attribute set, instead the attitude is used on SvgFragment so there would be duplicate im dictionary.
// The SvgDocument is not valid Svg element (that is SvgFragment) and is mainly used as abstraction for document reading and writing.
// The ElementName for SvgDocument is set explicitly here as that is the exception to attribute convention used accross codebase.
// The ElementName for SvgDocument is set explicitly here as that is the exception to attribute convention used across the codebase.
this._elementName = "svg";
}
}
Expand Down Expand Up @@ -455,7 +455,7 @@ public virtual void InitialiseFromXML(XmlReader reader, SvgDocument document)
throw new NotImplementedException();
}

/// <summary>Derrived classes may decide that the element should not be written. For example, the text element shouldn't be written if it's empty.</summary>
/// <summary>Derived classes may decide that the element should not be written. For example, the text element shouldn't be written if it's empty.</summary>
public virtual bool ShouldWriteElement()
{
//Write any element who has a name.
Expand Down Expand Up @@ -867,7 +867,7 @@ ISvgNode ISvgNode.DeepCopy()
}

/// <summary>
/// Fired when an Atrribute of this Element has changed
/// Fired when an Attribute of this Element has changed
/// </summary>
public event EventHandler<AttributeEventArgs> AttributeChanged;

Expand All @@ -881,7 +881,7 @@ protected void OnAttributeChanged(AttributeEventArgs args)
}

/// <summary>
/// Fired when an Atrribute of this Element has changed
/// Fired when an Attribute of this Element has changed
/// </summary>
public event EventHandler<ContentEventArgs> ContentChanged;

Expand Down Expand Up @@ -911,7 +911,7 @@ protected void OnContentChanged(ContentEventArgs args)
/// <summary>
/// Use this method to provide your implementation ISvgEventCaller which can register Actions
/// and call them if one of the events occurs. Make sure, that your SvgElement has a unique ID.
/// The SvgTextElement overwrites this and regsiters the Change event tor its text content.
/// The SvgTextElement overwrites this and registers the Change event tor its text content.
/// </summary>
/// <param name="caller"></param>
public virtual void RegisterEvents(ISvgEventCaller caller)
Expand Down Expand Up @@ -1069,7 +1069,7 @@ public class AttributeEventArgs : SVGArg
}

/// <summary>
/// Content of this whas was set
/// Describes the Content of this which was set
/// </summary>
public class ContentEventArgs : SVGArg
{
Expand Down Expand Up @@ -1101,7 +1101,7 @@ public interface ISvgEventCaller
}

/// <summary>
/// Represents the state of the mouse at the moment the event occured.
/// Represents the state of the mouse at the moment the event occurred.
/// </summary>
public class MouseArg : SVGArg
{
Expand Down

0 comments on commit 7ef8414

Please sign in to comment.