TX Text Control .NET for WPF

XmlElement Constructor

Constructor
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

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";