XmlElement Constructor
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Initializes a new instance of the XmlElement class.
Syntax
XmlElement(string)
Creates an XmlElement object with the specified name.
public XmlElement(string name);Public Sub New(name As String)| Parameter | Description |
|---|---|
| name | Specifies the element's name. |
XmlElement(string, string)
Creates an XmlElement object with the specified name and text.
public XmlElement(string name, string text);Public Sub New(name As String, text As String)| Parameter | Description |
|---|---|
| name | Specifies the element's name. |
| text | Specifies the element's text. |
Examples
The following example creates a Xml Element instance and configures its text setting for a document workflow.
XmlElement xmlElement = new("CustomerName");
xmlElement.Text = "Quarterly results";Dim xmlElement As New XmlElement("CustomerName")
xmlElement.Text = "Quarterly results"