Select Method

ITextRangeProvider.Select Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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)

'Declaration
Sub Select

ExceptionCondition
InvalidOperationException

Text selection is not supported by the text control.

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft