Export (0) Print
Expand All

ITextRangeProvider Interface

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.

  NameDescription
Public methodSupported by Silverlight for Windows PhoneAddToSelectionAdds to the collection of highlighted text in a text container that supports multiple disjoint selections.
Public methodSupported by Silverlight for Windows PhoneCloneReturns a new ITextRangeProvider that is identical to the original ITextRangeProvider and that inherits all the properties of the original.
Public methodSupported by Silverlight for Windows PhoneCompareReturns 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 methodSupported by Silverlight for Windows PhoneCompareEndpointsReturns a value that specifies whether two text ranges have identical endpoints.
Public methodSupported by Silverlight for Windows PhoneExpandToEnclosingUnitExpands the text range to the specified text unit.
Public methodSupported by Silverlight for Windows PhoneFindAttributeReturns a text range subset that has the specified attribute ID and attribute value.
Public methodSupported by Silverlight for Windows PhoneFindTextReturns a text range subset that contains the specified text.
Public methodSupported by Silverlight for Windows PhoneGetAttributeValueRetrieves the value of the specified attribute ID across the text range.
Public methodSupported by Silverlight for Windows PhoneGetBoundingRectanglesRetrieves a collection of bounding rectangles for each fully or partially visible line of text in a text range.
Public methodSupported by Silverlight for Windows PhoneGetChildrenRetrieves a collection of all the embedded objects that exist within the text range.
Public methodSupported by Silverlight for Windows PhoneGetEnclosingElementReturns the innermost element that encloses the text range.
Public methodSupported by Silverlight for Windows PhoneGetTextRetrieves the plain text of the range.
Public methodSupported by Silverlight for Windows PhoneMoveMoves the text range the specified number of text units.
Public methodSupported by Silverlight for Windows PhoneMoveEndpointByRangeMoves one endpoint of a text range to the specified endpoint of a second text range.
Public methodSupported by Silverlight for Windows PhoneMoveEndpointByUnitMoves one endpoint of the text range the specified number of text units within the document range.
Public methodSupported by Silverlight for Windows PhoneRemoveFromSelectionFrom 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 methodSupported by Silverlight for Windows PhoneScrollIntoViewCauses the text control to scroll vertically until the text range is visible in the viewport.
Public methodSupported by Silverlight for Windows PhoneSelectHighlights text in the text control that corresponds to the Start and End endpoints of the text range.
Top

This interface is implemented by a UI automation provider that must support the TextPattern pattern.

A TextPatternRange can represent an insertion point, a subset, or all the text in a TextPattern container.

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