ITextProvider interface (uiautomationcore.h)
Provides access to controls that contain text.
Inheritance
The ITextProvider interface inherits from the IUnknown interface. ITextProvider also has these types of members:
Methods
The ITextProvider interface has these methods.
ITextProvider::get_DocumentRange Retrieves a text range that encloses the main text of a document. (ITextProvider.get_DocumentRange) |
ITextProvider::get_SupportedTextSelection Retrieves a value that specifies the type of text selection that is supported by the control. (ITextProvider.get_SupportedTextSelection) |
ITextProvider::GetSelection Retrieves a collection of text ranges that represents the currently selected text in a text-based control. (ITextProvider.GetSelection) |
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.GetVisibleRanges) |
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
Requirement | Value |
---|---|
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) |