TextBox.Select Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Selects a range of text in the text box.
Assembly: System.Windows (in System.Windows.dll)
Parameters
- start
- Type: System.Int32
The zero-based index of the first character in the selection.
- length
- Type: System.Int32
The length of the selection, in characters.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The start or length value is negative. |
Show: