Skip to content

Commit 7ef8414

Browse files
authored
Typo corrections - comments and xml doc comments (#1163)
* Minor comment and XMLDoc comment typo correction
1 parent e4b93e9 commit 7ef8414

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Diff for: Source/Basic Shapes/SvgLine.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
namespace Svg
1+
namespace Svg
22
{
33
/// <summary>
4-
/// Represents and SVG line element.
4+
/// Represents an SVG line element.
55
/// </summary>
66
[SvgElement("line")]
77
public partial class SvgLine : SvgMarkerElement

Diff for: Source/SvgElement.cs

+7-7
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ protected internal string ElementName
122122
{
123123
// The SvgDocument does not have SvgElement attribute set, instead the attitude is used on SvgFragment so there would be duplicate im dictionary.
124124
// The SvgDocument is not valid Svg element (that is SvgFragment) and is mainly used as abstraction for document reading and writing.
125-
// The ElementName for SvgDocument is set explicitly here as that is the exception to attribute convention used accross codebase.
125+
// The ElementName for SvgDocument is set explicitly here as that is the exception to attribute convention used across the codebase.
126126
this._elementName = "svg";
127127
}
128128
}
@@ -455,7 +455,7 @@ public virtual void InitialiseFromXML(XmlReader reader, SvgDocument document)
455455
throw new NotImplementedException();
456456
}
457457

458-
/// <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>
458+
/// <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>
459459
public virtual bool ShouldWriteElement()
460460
{
461461
//Write any element who has a name.
@@ -867,7 +867,7 @@ ISvgNode ISvgNode.DeepCopy()
867867
}
868868

869869
/// <summary>
870-
/// Fired when an Atrribute of this Element has changed
870+
/// Fired when an Attribute of this Element has changed
871871
/// </summary>
872872
public event EventHandler<AttributeEventArgs> AttributeChanged;
873873

@@ -881,7 +881,7 @@ protected void OnAttributeChanged(AttributeEventArgs args)
881881
}
882882

883883
/// <summary>
884-
/// Fired when an Atrribute of this Element has changed
884+
/// Fired when an Attribute of this Element has changed
885885
/// </summary>
886886
public event EventHandler<ContentEventArgs> ContentChanged;
887887

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

10711071
/// <summary>
1072-
/// Content of this whas was set
1072+
/// Describes the Content of this which was set
10731073
/// </summary>
10741074
public class ContentEventArgs : SVGArg
10751075
{
@@ -1101,7 +1101,7 @@ public interface ISvgEventCaller
11011101
}
11021102

11031103
/// <summary>
1104-
/// Represents the state of the mouse at the moment the event occured.
1104+
/// Represents the state of the mouse at the moment the event occurred.
11051105
/// </summary>
11061106
public class MouseArg : SVGArg
11071107
{

0 commit comments

Comments
 (0)