Commit c912ea85 authored by davescriven's avatar davescriven
Browse files

- Renamed SvgGraphicsElement to SvgVisualElement to better describe what the base class represents.

parent b6c5fa36
...@@ -13,7 +13,7 @@ namespace Svg ...@@ -13,7 +13,7 @@ namespace Svg
/// <summary> /// <summary>
/// Represents an SVG path element. /// Represents an SVG path element.
/// </summary> /// </summary>
public class SvgPath : SvgGraphicsElement public class SvgPath : SvgVisualElement
{ {
private SvgPathSegmentList _pathData; private SvgPathSegmentList _pathData;
private GraphicsPath _path; private GraphicsPath _path;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.21022</ProductVersion> <ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion> <SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{886A98C5-37C0-4E8B-885E-30C1D2F98B47}</ProjectGuid> <ProjectGuid>{886A98C5-37C0-4E8B-885E-30C1D2F98B47}</ProjectGuid>
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
...@@ -64,8 +64,8 @@ ...@@ -64,8 +64,8 @@
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Basic Shapes\SvgGraphicsElement.cs" /> <Compile Include="Basic Shapes\SvgVisualElement.cs" />
<Compile Include="Basic Shapes\SvgGraphicsElementEvents.cs" /> <Compile Include="Basic Shapes\SvgVisualElementEvents.cs" />
<Compile Include="Basic Shapes\SvgCircle.cs" /> <Compile Include="Basic Shapes\SvgCircle.cs" />
<Compile Include="Basic Shapes\SvgEllipse.cs" /> <Compile Include="Basic Shapes\SvgEllipse.cs" />
<Compile Include="Basic Shapes\SvgLine.cs" /> <Compile Include="Basic Shapes\SvgLine.cs" />
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
<Compile Include="Painting\SvgRadialGradientServer.cs" /> <Compile Include="Painting\SvgRadialGradientServer.cs" />
<Compile Include="Painting\SvgStrokeLineCap.cs" /> <Compile Include="Painting\SvgStrokeLineCap.cs" />
<Compile Include="Painting\SvgStrokeLineJoin.cs" /> <Compile Include="Painting\SvgStrokeLineJoin.cs" />
<Compile Include="Basic Shapes\SvgGraphicsElementStyle.cs" /> <Compile Include="Basic Shapes\SvgVisualElementStyle.cs" />
<Compile Include="Paths\SvgArcSegment.cs" /> <Compile Include="Paths\SvgArcSegment.cs" />
<Compile Include="Paths\SvgClosePathSegment.cs" /> <Compile Include="Paths\SvgClosePathSegment.cs" />
<Compile Include="Paths\SvgCubicCurveSegment.cs" /> <Compile Include="Paths\SvgCubicCurveSegment.cs" />
......
...@@ -216,6 +216,12 @@ namespace Svg ...@@ -216,6 +216,12 @@ namespace Svg
} }
} }
/// <summary>
/// Called by the underlying <see cref="SvgElement"/> when an element has been added to the
/// <see cref="Children"/> collection.
/// </summary>
/// <param name="child">The <see cref="SvgElement"/> that has been added.</param>
/// <param name="index">An <see cref="int"/> representing the index where the element was added to the collection.</param>
protected virtual void AddElement(SvgElement child, int index) protected virtual void AddElement(SvgElement child, int index)
{ {
} }
......
...@@ -11,7 +11,7 @@ namespace Svg ...@@ -11,7 +11,7 @@ namespace Svg
/// <summary> /// <summary>
/// The <see cref="SvgText"/> element defines a graphics element consisting of text. /// The <see cref="SvgText"/> element defines a graphics element consisting of text.
/// </summary> /// </summary>
public class SvgText : SvgGraphicsElement public class SvgText : SvgVisualElement
{ {
private SvgUnit _x; private SvgUnit _x;
private SvgUnit _y; private SvgUnit _y;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment