ITextProvider ITextProvider ITextProvider ITextProvider Interface


Exposes methods and properties to support UI Automation client access to controls that contain text.

public interface class ITextProvider
public interface ITextProvider
type ITextProvider = interface
Public Interface ITextProvider


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


DocumentRange DocumentRange DocumentRange DocumentRange

Gets a text range that encloses the main text of a document.

SupportedTextSelection SupportedTextSelection SupportedTextSelection SupportedTextSelection

Gets a value that specifies whether a text provider supports selection and, if so, the type of selection supported.


GetSelection() GetSelection() GetSelection() GetSelection()

Retrieves a collection of disjoint text ranges associated with the current text selection or selections.

GetVisibleRanges() GetVisibleRanges() GetVisibleRanges() GetVisibleRanges()

Retrieves an array of disjoint text ranges from a text container where each text range begins with the first partially visible line through to the end of the last partially visible line.

RangeFromChild(IRawElementProviderSimple) RangeFromChild(IRawElementProviderSimple) RangeFromChild(IRawElementProviderSimple) RangeFromChild(IRawElementProviderSimple)

Retrieves a text range enclosing a child element such as an image, hyperlink, or other embedded object.

RangeFromPoint(Point) RangeFromPoint(Point) RangeFromPoint(Point) RangeFromPoint(Point)

Returns the degenerate (empty) text range nearest to the specified screen coordinates.

Applies to

See also