This commit is contained in:
75
PROMS/Volian.Svg.Library/SvgGroup.cs
Normal file
75
PROMS/Volian.Svg.Library/SvgGroup.cs
Normal file
@@ -0,0 +1,75 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Xml.Serialization;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
|
||||
namespace Volian.Svg.Library
|
||||
{
|
||||
public partial class SvgGroup : SvgPartInheritance
|
||||
{
|
||||
#region Description
|
||||
private string _Description = string.Empty;
|
||||
[System.ComponentModel.DefaultValueAttribute("")]
|
||||
[XmlElement("desc")]
|
||||
public string Description
|
||||
{
|
||||
get { return _Description; }
|
||||
set { _Description = value; }
|
||||
}
|
||||
#endregion
|
||||
#region Title
|
||||
private string _Title = string.Empty;
|
||||
[System.ComponentModel.DefaultValueAttribute("")]
|
||||
[XmlElement("title")]
|
||||
public string Title
|
||||
{
|
||||
get { return _Title; }
|
||||
set { _Title = value; }
|
||||
}
|
||||
#endregion
|
||||
#region Parts
|
||||
// SVG Parts
|
||||
SvgParts _SvgParts = new SvgParts();
|
||||
[XmlElement("foreignObject", typeof(SvgRtf))]
|
||||
[XmlElement("use", typeof(SvgUse))]
|
||||
[XmlElement("image", typeof(SvgImage))]
|
||||
[XmlElement("text", typeof(SvgText))]
|
||||
[XmlElement("line", typeof(SvgLine))]
|
||||
[XmlElement("circle", typeof(SvgCircle))]
|
||||
[XmlElement("rect", typeof(SvgRectangle))]
|
||||
[XmlElement("ellipse", typeof(SvgEllipse))]
|
||||
[XmlElement("svg", typeof(Svg))]
|
||||
[XmlElement("g", typeof(SvgGroup))]
|
||||
[XmlElement("defs", typeof(SvgDefine))]
|
||||
public SvgParts SvgParts
|
||||
{
|
||||
get { return _SvgParts; }
|
||||
set { _SvgParts = value; }
|
||||
}
|
||||
public SvgPart Add(SvgPart svgPart)
|
||||
{
|
||||
_SvgParts.Add(svgPart);
|
||||
return svgPart;
|
||||
}
|
||||
public void RemoveAt(int i)
|
||||
{
|
||||
_SvgParts.RemoveAt(i);
|
||||
}
|
||||
public int Count
|
||||
{ get { return _SvgParts.Count; } }
|
||||
#endregion
|
||||
#region Dictionary of Parts
|
||||
internal override void AddLookup(Dictionary<string, SvgPart> lookUp)
|
||||
{
|
||||
base.AddLookup(lookUp);
|
||||
SvgParts.AddLookup(lookUp);
|
||||
}
|
||||
#endregion
|
||||
public override string ToString()
|
||||
{
|
||||
return ID;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user