32 lines
772 B
C#
32 lines
772 B
C#
using System.Xml.Serialization;
|
|
using System.ComponentModel;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Volian.Svg.Library
|
|
{
|
|
|
|
[TypeConverter(typeof(ExpandableObjectConverter))]
|
|
public abstract partial class SvgPart
|
|
{
|
|
#region ID
|
|
protected string _ID = string.Empty;
|
|
[System.ComponentModel.DefaultValueAttribute("")]
|
|
[XmlAttribute("id")]
|
|
public string ID
|
|
{
|
|
get { return _ID; }
|
|
set { _ID = value; }
|
|
}
|
|
#endregion
|
|
#region Setup Inheritance
|
|
virtual internal void SetupInheritance(SvgInheritedSettings myParentsSettings) { ; }
|
|
#endregion
|
|
#region Dictionary of Parts
|
|
internal virtual void AddLookup(Dictionary<string, SvgPart> lookUp)
|
|
{
|
|
if (_ID != string.Empty && !lookUp.ContainsKey(_ID))
|
|
lookUp.Add(_ID, this);
|
|
}
|
|
#endregion
|
|
}
|
|
} |