TX Text Control .NET Server

XmlElement Constructor

Constructor
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as 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);
ParameterDescription
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);
ParameterDescription
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";