TX Text Control .NET for WPF

AutoSelect Property

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

Description

Determines whether the text of a newly added XML element is automatically selected.

Syntax

public bool AutoSelect { get; set; }

Examples

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

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