TX Text Control .NET for WPF

SelectionViewMode Property

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

Description

Specifies whether text selections are displayed with a transparent bitmap or through inverting the text.

Syntax

public SelectionViewMode SelectionViewMode { get; set; }

Members

ValueDescription
ClassicWhen text is selected, this text is inverted on the screen.
TransparentBitmapWhen text is selected, a transparent bitmap is used to display the selection.

Examples

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

textControl.SelectionViewMode = SelectionViewMode.Classic;
Console.WriteLine($"Selection View Mode used by Text Control: {textControl.SelectionViewMode}");