ITextRangeProvider.AddToSelection Method

Adds to the collection of highlighted text in a text container that supports multiple disjoint selections.

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

void AddToSelection()

ExceptionCondition
InvalidOperationException

The text provider does not support multiple disjoint selections.

The text insertion point moves to the area of the new selection.

Providing a degenerate text range moves the insertion point.

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

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

Community Additions

ADD
Show: