ITextRangeProvider Interface

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:  UIAutomationProvider (in UIAutomationProvider.dll)

[ComVisibleAttribute(true)]
[GuidAttribute("5347ad7b-c355-46f8-aff5-909033582f63")]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
public interface ITextRangeProvider

NameDescription
System_CAPS_pubmethodAddToSelection()

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

System_CAPS_pubmethodClone()

Returns a new ITextRangeProvider identical to the original ITextRangeProvider and inheriting all properties of the original.

System_CAPS_pubmethodCompare(ITextRangeProvider)

Returns a value that indicates whether the span (the Start endpoint to the End endpoint) of a text range is the same as another text range.

System_CAPS_pubmethodCompareEndpoints(TextPatternRangeEndpoint, ITextRangeProvider, TextPatternRangeEndpoint)

Returns a value that specifies whether two text ranges have identical endpoints.

System_CAPS_pubmethodExpandToEnclosingUnit(TextUnit)

Expands the text range to the specified text unit.

System_CAPS_pubmethodFindAttribute(Int32, Object, Boolean)

Returns a text range subset that has the specified attribute value.

System_CAPS_pubmethodFindText(String, Boolean, Boolean)

Returns a text range subset that contains the specified text.

System_CAPS_pubmethodGetAttributeValue(Int32)

Retrieves the value of the specified attribute across the text range.

System_CAPS_pubmethodGetBoundingRectangles()

Retrieves a collection of bounding rectangles for each fully or partially visible line of text in a text range.

System_CAPS_pubmethodGetChildren()

Retrieves a collection of all embedded objects that fall within the text range.

System_CAPS_pubmethodGetEnclosingElement()

Returns the innermost control that encloses the text range.

System_CAPS_pubmethodGetText(Int32)

Retrieves the plain text of the range.

System_CAPS_pubmethodMove(TextUnit, Int32)

Moves the text range the specified number of text units.

System_CAPS_pubmethodMoveEndpointByRange(TextPatternRangeEndpoint, ITextRangeProvider, TextPatternRangeEndpoint)

Moves one endpoint of a text range to the specified endpoint of a second text range.

System_CAPS_pubmethodMoveEndpointByUnit(TextPatternRangeEndpoint, TextUnit, Int32)

Moves one endpoint of the text range the specified number of text units within the document range.

System_CAPS_pubmethodRemoveFromSelection()

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

System_CAPS_pubmethodScrollIntoView(Boolean)

Causes the text control to scroll vertically until the text range is visible in the viewport.

System_CAPS_pubmethodSelect()

Highlights text in the text control corresponding to the text range Start and End endpoints.

Implemented on a UI Automation provider that must support the TextPattern control pattern.

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

.NET Framework
Available since 3.0
Silverlight
Available since 4.0
Windows Phone Silverlight
Available since 7.1
Return to top
Show:
© 2016 Microsoft