SelectionStart 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 starting position of the text selected in the text box
Syntax
public int SelectionStart { get; set; }Public Property SelectionStart As IntegerExamples
The following example uses RibbonTextBox.SelectionStart to configure selection start as part of the ribbon text box workflow. The change is then applied to the active document or user interface.
ribbonTextBox.SelectionStart = 1;
ribbonTextBox.Update();ribbonTextBox.SelectionStart = 1
ribbonTextBox.Update()