Class SvgDocument
Class containing SVG Document.
Implements
Inherited Members
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.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
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. |