An instance of this class represents an element in a XML document. To iterate through all occurrences of an XML element in a Text Control document the Xml
public class XmlElementPublic Class XmlElementThe following example shows how to instantiate a TXText
//Create an XmlElement with a specific name
TXTextControl.XmlElement MyXMLElement_withElementName = new TXTextControl.XmlElement("XMLElementName");
//Create an XmlElement with a specific name and text
TXTextControl.XmlElement MyXMLElement_withElementNameAndDescription = new TXTextControl.XmlElement("XMLElementName", "XMLElementDescription");'Create an XmlElement with a specific name
Dim MyXMLElement_withElementName As TXTextControl.XmlElement = New TXTextControl.XmlElement("XMLElementName")
'Create an XmlElement with a specific name and text
Dim MyXMLElement_withElementNameAndDescription As TXTextControl.XmlElement = New TXTextControl.XmlElement("XMLElementName", "XMLElementDescription")| Constructor | Description |
|---|---|
| Xml |
Initializes a new instance of the Xml |
| Method | Description |
|---|---|
| Add |
Adds a new XML element as a sub-element of this element. |
| Get |
Returns an XML Element object that represents a child element of this element. |
| Remove |
Removes an XML child element. |
| Select | Selects the text of the XML element. |
| Property | Description |
|---|---|
| Auto |
Determines whether the text of a newly added XML element is automatically selected. |
| Auto |
Determines whether text is automatically created for a newly added XML element that has no text contents. |
| Element |
Gets the name of an XML element. |
| Text | Specifies the text of the XML element. |