WinForms

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

    Show / Hide Table of Contents

    Class Element

    Element class.

    Inheritance
    System.Object
    Element
    SuperElement
    SvgDocument
    Implements
    IElement
    Inherited Members
    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 abstract class Element : IElement

    Constructors

    Element()

    Initializes a new instance of the Element class.

    Declaration
    public Element()

    Fields

    m_attributes

    Declaration
    protected Hashtable m_attributes
    Field Value
    Type Description
    System.Collections.Hashtable

    m_children

    Declaration
    protected ArrayList m_children
    Field Value
    Type Description
    System.Collections.ArrayList

    m_document

    Declaration
    protected SvgDocument m_document
    Field Value
    Type Description
    SvgDocument

    m_name

    Declaration
    protected string m_name
    Field Value
    Type Description
    System.String

    m_parent

    Declaration
    protected Element m_parent
    Field Value
    Type Description
    Element

    m_text

    Declaration
    protected string m_text
    Field Value
    Type Description
    System.String

    Properties

    Attributes

    Gets the attributes.

    Declaration
    public Hashtable Attributes { get; }
    Property Value
    Type Description
    System.Collections.Hashtable

    The attributes.

    Children

    Gets the children.

    Declaration
    public Element.ElementsList Children { get; }
    Property Value
    Type Description
    Element.ElementsList

    The children.

    Id

    Gets or sets the id.

    Declaration
    public string Id { get; set; }
    Property Value
    Type Description
    System.String

    The id.

    Name

    Gets the name.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String

    The name.

    OwnerDocument

    Gets the owner document.

    Declaration
    public SvgDocument OwnerDocument { get; }
    Property Value
    Type Description
    SvgDocument

    The owner document.

    Parent

    Gets the parent.

    Declaration
    public Element Parent { get; }
    Property Value
    Type Description
    Element

    The parent.

    Text

    Gets or sets the text.

    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    System.String

    The text.

    Methods

    AddChild(Element)

    Adds the child.

    Declaration
    public virtual void AddChild(Element value)
    Parameters
    Type Name Description
    Element value

    The value.

    CanAddChild(Element)

    Determines whether this instance [can add child] the specified elem.

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

    The elem.

    Returns
    Type Description
    System.Boolean

    true if this instance [can add child] the specified elem; otherwise, false.

    Draw(Graphics)

    Draws the specified graphics.

    Declaration
    public virtual void Draw(Graphics g)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    The graphics.

    GetAttribute(Object, Object)

    Gets the attribute.

    Declaration
    protected object GetAttribute(object key, object defValue)
    Parameters
    Type Name Description
    System.Object key

    The key.

    System.Object defValue

    The def value.

    Returns
    Type Description
    System.Object

    The object.

    SetAttribute(Object, Object, Object)

    Sets the attribute.

    Declaration
    protected void SetAttribute(object key, object value, object defValue)
    Parameters
    Type Name Description
    System.Object key

    The key.

    System.Object value

    The value.

    System.Object defValue

    The def value.

    Implements

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