IUIAutomationTextPattern interface
Provides access to a control that contains text.
When to implement
UI Automation client applications do not implement IUIAutomationTextPattern.
Members
The IUIAutomationTextPattern interface inherits from the IUnknown interface. IUIAutomationTextPattern also has these types of members:
Methods
The IUIAutomationTextPattern 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, Microsoft Excel spreadsheet, or other embedded object. |
| RangeFromPoint |
Retrieves the degenerate (empty) text range nearest to the specified screen coordinates. |
Properties
The IUIAutomationTextPattern 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. |
Requirements
|
Minimum supported client |
Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista, Windows XP with SP3 and Platform Update for Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008, Windows Server 2003 with SP2 and Platform Update for Windows Server 2008 [desktop apps only] |
|
Header |
|
|
IDL |
|
|
DLL |
|
|
IID |
IID_IUIAutomationTextPattern is defined as 32eba289-3583-42c9-9c59-3b6d9a1e9b6a |
See also