IUIAutomationTextPattern2 interface (uiautomationclient.h)

Extends the IUIAutomationTextPattern interface.

Inheritance

The IUIAutomationTextPattern2 interface inherits from IUIAutomationTextPattern. IUIAutomationTextPattern2 also has these types of members:

Methods

The IUIAutomationTextPattern2 interface has these methods.

 
IUIAutomationTextPattern2::GetCaretRange

Retrieves a zero-length text range at the location of the caret that belongs to the text-based control.
IUIAutomationTextPattern2::RangeFromAnnotation

Retrieves a text range containing the text that is the target of the annotation associated with the specified annotation element.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header uiautomationclient.h (include UIAutomation.h)

See also

Control Pattern Interfaces for Clients

IUIAutomationTextPattern

UI Automation Support for Textual Content

Working with Text-based Controls