TX Text Control .NET for Windows Forms

SelectionStart Property

Property|Introduced in 26.0
Namespace
TXTextControl.Windows.Forms.Ribbon
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the starting position of the text selected in the text box

Syntax

public int SelectionStart { get; set; }

Examples

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();