ITextRangeProvider.RemoveFromSelection Method

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

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)

Syntax

'Declaration
Sub RemoveFromSelection
void RemoveFromSelection()

Exceptions

Exception Condition
InvalidOperationException

The text provider does not support multiple disjoint .

Remarks

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

Providing a degenerate text range will move the insertion point.

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.