using System; using System.Collections.Generic; using System.Xml; using System.Text; using System.Drawing; namespace Svg { /// /// An element used to group SVG shapes. /// public class SvgGroup : SvgGraphicsElement { public SvgGroup() { } /// /// Gets or sets the fill. /// /// The fill. [SvgAttribute("fill")] public override SvgPaintServer Fill { get { return (this.Attributes["Fill"] == null) ? new SvgColourServer(Color.Transparent) : (SvgPaintServer)this.Attributes["Fill"]; } set { this.Attributes["Fill"] = value; } } /// /// Gets the for this element. /// /// public override System.Drawing.Drawing2D.GraphicsPath Path { get { return null; } } /// /// Gets the bounds of the element. /// /// The bounds. public override System.Drawing.RectangleF Bounds { get { return new System.Drawing.RectangleF(); } } /// /// Renders the and contents to the specified object. /// /// The object to render to. protected override void Render(System.Drawing.Graphics graphics) { this.PushTransforms(graphics); base.RenderContents(graphics); this.PopTransforms(graphics); } } }