Share via


ITextRangeProvider.Select Method

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

Highlights text in the text control that corresponds to the Start and End endpoints of the text range.

Namespace:  System.Windows.Automation.Provider
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Sub Select
void Select()

Exceptions

Exception Condition
InvalidOperationException

Text selection is not supported by the text control.

Remarks

If a degenerate text range is provided, the text insertion point moves to the Start endpoint of the text range.

Version Information

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.