Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IUIAutomationTextPattern2 interface

Extends the IUIAutomationTextPattern interface.

When to implement

UI Automation client applications do not implement IUIAutomationTextPattern2.

Members

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

Methods

The IUIAutomationTextPattern2 interface has these methods.

MethodDescription
GetCaretRange

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

RangeFromAnnotation

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

 

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

UIAutomationClient.h (include UIAutomation.h)

IDL

UIAutomationClient.idl

DLL

UIAutomationCore.dll

IID

IID_IUIAutomationTextPattern2 is defined as 506a921a-fcc9-409f-b23b-37eb74106872

See also

Control Pattern Interfaces for Clients
UI Automation Support for Textual Content
Working with Text-based Controls

 

 

Community Additions

Show:
© 2014 Microsoft