SelectionViewMode Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Specifies whether text selections are displayed with a transparent bitmap or through inverting the text.
Syntax
public SelectionViewMode SelectionViewMode { get; set; }Public Property SelectionViewMode As SelectionViewModeMembers
| Value | Description |
|---|---|
| Classic | When text is selected, this text is inverted on the screen. |
| TransparentBitmap | When 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}");textControl.SelectionViewMode = SelectionViewMode.Classic
Console.WriteLine($"Selection View Mode used by Text Control: {textControl.SelectionViewMode}")