ITextProvider Interface

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

ITextProvider Members

DocumentRange Gets a text range that encloses the main text of a document.
GetSelection Retrieves a collection of disjoint text ranges associated with the current text selection or selections.
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 Retrieves a text range enclosing a child element such as an image, hyperlink, or other embedded object.
RangeFromPoint Returns the degenerate (empty) text range nearest to the specified screen coordinates.
SupportedTextSelection Gets a value that specifies whether a text provider supports selection and, if so, the type of selection supported.


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

Interface Information

Inherits from IUnknown
Header and IDL files uiautomation.h, uiautomationcore.idl
Minimum operating systems Windows XP

See Also

Community Additions