Specifies the text of the XML element. If the element consists of several sub-elements, the text parts are separated through paragraph end characters (0x0A).

Syntax

public string Text { get; set; }
Public Property Text() As String

Examples

The following snippet shows the usage of the TXTextControl.XmlElement.Text property. Here, it is stored in a variable of the type 'string'.

TXTextControl.XmlElement newElement = new TXTextControl.XmlElement("Telephone", "046798 / 3459786");
System.Windows.Forms.MessageBox.Show(newElement.Text); // MessageBox shows phone number (046798 / 3459786)
Dim newElement As TXTextControl.XmlElement = New TXTextControl.XmlElement("Telephone", "046798 / 3459786")
System.Windows.Forms.MessageBox.Show(newElement.Text) 'MessageBox shows phone number (046798 / 3459786)