ITextRangeProvider Interface

ITextRangeProvider Interface

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. ]

Exposes methods and properties to support UI automation client access to a span of continuous text in a text container that implements ITextProvider.

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

public interface ITextRangeProvider

The ITextRangeProvider type exposes the following members.

Public methodAddToSelectionAdds to the collection of highlighted text in a text container that supports multiple disjoint selections.
Public methodCloneReturns a new ITextRangeProvider that is identical to the original ITextRangeProvider and that inherits all the properties of the original.
Public methodCompareReturns a value that indicates whether the span (the Start endpoint through the End endpoint) of a text range is the same as another text range.
Public methodCompareEndpointsReturns a value that specifies whether two text ranges have identical endpoints.
Public methodExpandToEnclosingUnitExpands the text range to the specified text unit.
Public methodFindAttributeReturns a text range subset that has the specified attribute ID and attribute value.
Public methodFindTextReturns a text range subset that contains the specified text.
Public methodGetAttributeValueRetrieves the value of the specified attribute ID across the text range.
Public methodGetBoundingRectanglesRetrieves a collection of bounding rectangles for each fully or partially visible line of text in a text range.
Public methodGetChildrenRetrieves a collection of all the embedded objects that exist within the text range.
Public methodGetEnclosingElementReturns the innermost element that encloses the text range.
Public methodGetTextRetrieves the plain text of the range.
Public methodMoveMoves the text range the specified number of text units.
Public methodMoveEndpointByRangeMoves one endpoint of a text range to the specified endpoint of a second text range.
Public methodMoveEndpointByUnitMoves one endpoint of the text range the specified number of text units within the document range.
Public methodRemoveFromSelectionFrom 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.
Public methodScrollIntoViewCauses the text control to scroll vertically until the text range is visible in the viewport.
Public methodSelectHighlights text in the text control that corresponds to the Start and End endpoints of the text range.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

© 2016 Microsoft