Selection Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the current selection in the text part. The property value is an object of the type Selection. A selection can be used to assign character and paragraph formatting attributes to a piece of text.
Syntax
Selection Selection { get; set; }Property Selection As SelectionExamples
The following example updates the formatted text part's selection and applies it back to that text part.
Selection selection = iFormattedText.Selection;
selection.Bold = true;
iFormattedText.Selection = selection;Dim selection As Selection = iFormattedText.Selection
selection.Bold = True
iFormattedText.Selection = selection