ITextProvider interface

Provides access to controls that contain text.

Methods

The ITextProvider interface has these methods.

Method Description
ITextProvider::get_DocumentRange Retrieves a text range that encloses the main text of a document.
ITextProvider::get_SupportedTextSelection Retrieves a value that specifies the type of text selection that is supported by the control.
ITextProvider::GetSelection Retrieves a collection of text ranges that represents the currently selected text in a text-based control.
ITextProvider::GetVisibleRanges Retrieves an array of disjoint text ranges from a text-based control where each text range represents a contiguous span of visible text.
ITextProvider::RangeFromChild Retrieves a text range enclosing a child element such as an image, hyperlink, or other embedded object.
ITextProvider::RangeFromPoint Returns the degenerate (empty) text range nearest to the specified screen coordinates.

Remarks

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

Requirements

   
Minimum supported client Windows XP [desktop apps | UWP apps]
Minimum supported server Windows Server 2003 [desktop apps | UWP apps]
Target Platform Windows
Header uiautomationcore.h (include UIAutomation.h)

See Also

ITextProvider2

ITextRangeProvider

UI Automation Providers Overview