WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SvgDocument

    Show / Hide Table of Contents

    Class SvgDocument

    Class containing SVG Document.

    Inheritance
    System.Object
    Element
    SvgDocument
    Implements
    IElement
    Inherited Members
    Element.m_name
    Element.m_text
    Element.m_parent
    Element.m_children
    Element.m_attributes
    Element.m_document
    Element.AddChild(Element)
    Element.Draw(Graphics)
    Element.GetAttribute(Object, Object)
    Element.SetAttribute(Object, Object, Object)
    Element.Name
    Element.Children
    Element.Attributes
    Element.Parent
    Element.Id
    Element.OwnerDocument
    Element.Text
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.SVG.IO
    Assembly: Syncfusion.Diagram.Base.dll
    Syntax
    public 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)

    Adds child element.

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

    The element.

    Returns
    Type Description
    System.Boolean

    true, if can add child.

    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

    The element.

    Load(String)

    Loads the specified filename.

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

    The filename.

    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 - 2023 Syncfusion Inc. All Rights Reserved