menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SvgDocument - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SvgDocument

    Represents the SVG document.

    Inheritance
    System.Object
    Element
    SvgDocument
    Implements
    IElement
    Inherited Members
    Element.AddChild(Element)
    Element.Attributes
    Element.Children
    Element.Draw(Graphics)
    Element.GetAttribute(Object, Object)
    Element.Id
    Element.Name
    Element.OwnerDocument
    Element.Parent
    Element.SetAttribute(Object, Object, Object)
    Element.Text
    Element.WriteXmlAttributes(XmlWriter)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Forms.Chart.SvgBase
    Assembly: Syncfusion.Chart.Base.dll
    Syntax
    public sealed class SvgDocument : Element, IElement

    Constructors

    SvgDocument()

    Initializes a new instance of the SvgDocument class.

    Declaration
    public SvgDocument()

    Properties

    Defs

    Gets the defs.

    Declaration
    public DefsElement Defs { get; }
    Property Value
    Type Description
    DefsElement

    The defs.

    Svg

    Gets the SVG.

    Declaration
    public SvgElement Svg { get; }
    Property Value
    Type Description
    SvgElement

    The SVG.

    Methods

    CanAddChild(Element)

    Determines whether the specified child is allowed to add to the this element.

    Declaration
    protected override bool CanAddChild(Element elem)
    Parameters
    Type Name Description
    Element elem

    The elem.

    Returns
    Type Description
    System.Boolean

    true if the specified child is allowed to add to the this element; otherwise, false.

    Overrides
    Element.CanAddChild(Element)

    FindElement(String)

    Finds the element.

    Declaration
    public Element FindElement(string id)
    Parameters
    Type Name Description
    System.String id

    The id.

    Returns
    Type Description
    Element

    Returns the specific Element for the given id.

    Load(String)

    Loads the specified flianame.

    Declaration
    public void Load(string flianame)
    Parameters
    Type Name Description
    System.String flianame

    The flianame.

    Save(Stream)

    Saves the SVG document in a stream

    Declaration
    public void Save(Stream stream)
    Parameters
    Type Name Description
    System.IO.Stream stream

    The stream.

    Save(String)

    Saves the specified filename.

    Declaration
    public void Save(string filename)
    Parameters
    Type Name Description
    System.String filename

    The filename.

    Implements

    IElement
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved