TX Text Control .NET for WPF

HideSelection Property

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

Description

Gets or sets a value indicating whether the selected text in the Text Control remains highlighted when the control loses focus.

Syntax

public bool HideSelection { get; set; }

Examples

The following example uses TextControl.HideSelection to configure hide selection as part of the text control workflow. The configured value is checked before the workflow continues.

textControl.HideSelection = false;
if (textControl.HideSelection)
{
    Console.WriteLine("Text Control: Hide Selection is enabled.");
}