This commit is contained in:
36
PROMS/Volian.Svg.Library/SvgShapePart.cs
Normal file
36
PROMS/Volian.Svg.Library/SvgShapePart.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Xml.Serialization;
|
||||
using System.Drawing;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Volian.Svg.Library
|
||||
{
|
||||
[TypeConverter(typeof(ExpandableObjectConverter))]
|
||||
public abstract class SvgShapePart : SvgLinePart
|
||||
{
|
||||
#region Fill Settings
|
||||
protected SvgFillSettings _MyFillSettings = new SvgFillSettings();
|
||||
[System.ComponentModel.DefaultValueAttribute("")]
|
||||
[XmlAttribute("fill")]
|
||||
public string Fill
|
||||
{
|
||||
get { return _MyFillSettings.Fill; }
|
||||
set { _MyFillSettings.Fill = value; }
|
||||
}
|
||||
[XmlIgnore]
|
||||
protected Color FillColor
|
||||
{
|
||||
get { return _MyFillSettings.FillColor; }
|
||||
set { _MyFillSettings.FillColor = value; }
|
||||
}
|
||||
#endregion
|
||||
#region Setup Inheritance
|
||||
override internal void SetupInheritance(SvgInheritedSettings myParentsSettings)
|
||||
{
|
||||
base.SetupInheritance(myParentsSettings);
|
||||
_MyFillSettings.MyParentsSettings = myParentsSettings.MyFillSettings;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user