TextBox.SelectionStart Property
Silverlight
Gets or sets the starting position of the text selected in the text box.
Namespace: System.Windows.Controls
Assembly: System.Windows (in System.Windows.dll)
| 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.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.