TX Text Control .NET for Windows Forms

AutoText Property

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

Description

Determines whether text is automatically created for a newly added XML element that has no text contents. The created text consists of the element's name enclosed in square brackets and is created only if no text has been set with the XML element's Text property.

Syntax

public bool AutoText { get; set; }

Examples

The following example uses XmlElement.AutoText to configure auto text as part of the xml element workflow. The configured value is checked before the workflow continues.

xmlElement.AutoText = true;
if (xmlElement.AutoText)
{
    Console.WriteLine("Xml Element: Auto Text is enabled.");
}