共用方式為


SelectionStart

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the starting position of the text that is selected in the text box.

<TextBox SelectionStart="int" .../>
value = object.SelectionStart
object.SelectionStart = value

Property Value

Type: int

The starting position of the current selection, or 0 if there is no selection.

This property is read/write. The default is 0.

Managed Equivalent

SelectionStart

Applies To

TextBox

Version Information

Silverlight 2