TextBox.SelectionStart Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets the starting position of the text selected in the text box.
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The value is less than 0. |
If there is no selection, the SelectionStart value gets or sets the location of the cursor.
Setting this value changes the starting position of the selection box and raises a SelectionChanged event. The SelectionLength remains the same.
Show: