ITextProvider interface
Provides access to controls that contain text.
Members
The ITextProvider interface inherits from the IUnknown interface. ITextProvider also has these types of members:
Methods
The ITextProvider interface has these methods.
| Method | Description |
|---|---|
| GetSelection |
Retrieves a collection of text ranges that represents the currently selected text in a text-based control. |
| GetVisibleRanges |
Retrieves an array of disjoint text ranges from a text-based control where each text range represents a contiguous span of visible text. |
| 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. |
Properties
The ITextProvider interface has these properties.
| Property | Access type | Description |
|---|---|---|
|
Read-only |
Retrieves a text range that encloses the main text of a document. | |
|
Read-only |
Retrieves a value that specifies the type of text selection that is supported by the control. |
Remarks
Implemented on a Microsoft UI Automation provider that must support the Text control pattern.
Requirements
|
Minimum supported client |
Windows XP [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps | Windows Store apps] |
|
Header |
|
|
IDL |
|
|
DLL |
|
|
IID |
IID_ITextProvider is defined as 5347ad7b-c355-46f8-aff5-909033582f63 |
See also