Export (0) Print
Expand All

ITextRangeProvider.RemoveFromSelection Method

From the collection of highlighted text in a text container that supports multiple disjoint selections, removes a highlighted section of text that corresponds to the caller's Start and End endpoints.

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

void RemoveFromSelection()

ExceptionCondition
InvalidOperationException

The text provider does not support multiple disjoint .

The text insertion point moves to the area of the removed highlight.

Providing a degenerate text range will move 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:
© 2014 Microsoft