Class Element
Base implementation of IElement interface.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Chart.SvgBase
Assembly: Syncfusion.Chart.Base.dll
Syntax
public abstract class Element : IElement
Constructors
Element(String)
Initializes a new instance of the Element class.
Declaration
public Element(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of element. |
Properties
Attributes
Gets the attributes.
Declaration
public Hashtable Attributes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Hashtable | The attributes. |
Children
Gets the inner elements.
Declaration
public Element.ElementsList Children { get; }
Property Value
Type | Description |
---|---|
Element.ElementsList | The inner elements. |
Id
Gets or sets the element identifier.
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String | The identifier. |
Name
Gets the name of element.
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 element.
Declaration
public Element Parent { get; }
Property Value
Type | Description |
---|---|
Element | The parent element. |
Text
Gets or sets the inner text of element.
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 the specified child is allowed to add to the this element.
Declaration
protected virtual bool CanAddChild(Element elem)
Parameters
Type | Name | Description |
---|---|---|
Element | elem | The elem. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Draw(Graphics)
Draws the specified g.
Declaration
public virtual void Draw(Graphics g)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The g. |
GetAttribute(Object, Object)
Gets the attribute value.
Declaration
protected object GetAttribute(object key, object defValue)
Parameters
Type | Name | Description |
---|---|---|
System.Object | key | The key. |
System.Object | defValue | The default value. |
Returns
Type | Description |
---|---|
System.Object | Returns object of the specified key. |
SetAttribute(Object, Object, Object)
Sets the value of 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 default value. |
WriteXmlAttributes(XmlWriter)
Writes the attributes to XML document.
Declaration
protected virtual void WriteXmlAttributes(XmlWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | writer | The System.Xml.XmlWriter. |