using System; using System.Collections.Generic; using System.Xml; using System.Text; using System.Drawing; namespace Svg { /// /// An element used to group SVG shapes. /// [SvgElement("g")] public class SvgGroup : SvgVisualElement { 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(SvgRenderer renderer) { this.PushTransforms(renderer); this.SetClip(renderer); base.RenderChildren(renderer); this.ResetClip(renderer); this.PopTransforms(renderer); } } }