SelectionLength Property
- Namespace
TXTextControl.Windows. Forms. Ribbon
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Gets or sets the number of characters in the current selection in the text box.
Syntax
public int SelectionLength { get; set; }Public Property SelectionLength As IntegerExamples
The following example uses RibbonTextBox.SelectionLength to configure selection length as part of the ribbon text box workflow. The change is then applied to the active document or user interface.
ribbonTextBox.SelectionLength = 1;
ribbonTextBox.Update();ribbonTextBox.SelectionLength = 1
ribbonTextBox.Update()