TextBox.SelectionStart Property

Definition

Gets or sets the starting position of the text selected in the text box. When the SelectionLength is 0 (there is no selected text), the SelectionStart property corresponds to the cursor position.

C#
public int SelectionStart { get; set; }
XAML
<TextBox SelectionStart="int"/>

Property Value

Int32

The starting position of the current selection or the current cursor position.

Applies to

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6