SelectedText

Silverlight

Gets or sets the content of the current selection in the text box.

<object SelectedText="string" .../>
value = object.SelectedText
object.SelectedText = value

Type: string

The currently selected text in the text box. If no text is selected, the value is an empty string.

This property is read/write. The default is empty string.

The SelectedText property can be used to replace the selected text or to insert new text at the caret location if no text is selected. Setting this property raises the SelectionChanged event.

Silverlight 2

Community Additions

ADD
Show: