Class ElementsFactory
Factory for tag elements. Creates classes, responsible for HTML tags.
Inheritance
System.Object
ElementsFactory
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.Windows.Forms.HTMLUI
Assembly: Syncfusion.HTMLUI.Windows.dll
Syntax
public sealed class ElementsFactory
Constructors
ElementsFactory()
Declaration
public ElementsFactory()
Methods
Add(IHTMLElement)
Adds the specified custom element to the factory of known elements.
Declaration
public static bool Add(IHTMLElement customElement)
Parameters
Type | Name | Description |
---|---|---|
IHTMLElement | customElement | Instance of the element. |
Returns
Type | Description |
---|---|
System.Boolean | True if element was successfully added to factory; False if element with such name already exists. |
ConvertTo(HTMLUIControl, XmlElement)
Converts XML element.
Declaration
public static BaseElement ConvertTo(HTMLUIControl control, XmlElement element)
Parameters
Type | Name | Description |
---|---|---|
HTMLUIControl | control | Control object. |
System.Xml.XmlElement | element | XML element which represents the element. |
Returns
Type | Description |
---|---|
BaseElement | Converted element. |
GetElement(String)
Returns an instance of the element with the specified tag name.
Declaration
public static BaseElement GetElement(string tagName)
Parameters
Type | Name | Description |
---|---|---|
System.String | tagName | Name of the tag. |
Returns
Type | Description |
---|---|
BaseElement | Created element object. |
Remove(IHTMLElement)
Removes the specified element from the factory of known elements.
Declaration
public static void Remove(IHTMLElement customElement)
Parameters
Type | Name | Description |
---|---|---|
IHTMLElement | customElement | Instance of such custom tag element. |