ITextProvider2 interface

Extends the ITextProvider interface to enable Microsoft UI Automation providers to expose textual content that is the target of an annotation, and information about a caret that belongs to the provider.

When to implement

This interface should be implemented when developing a text provider for a document control.

Members

The ITextProvider2 interface inherits from ITextProvider. ITextProvider2 also has these types of members:

Methods

The ITextProvider2 interface has these methods.

MethodDescription
GetCaretRange

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

RangeFromAnnotation

Exposes a text range that contains the text that is the target of the annotation associated with the specified annotation element.

 

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

UIAutomationCore.h (include UIAutomation.h)

IDL

UIAutomationCore.idl

DLL

UIAutomationCore.dll

IID

IID_ITextProvider2 is defined as 0dc5e6ed-3e16-4bf1-8f9a-a979878bc195

See also

Document Control Type
ITextProvider
ITextRangeProvider
UI Automation Providers Overview
UI Automation Support for Textual Content

 

 

Community Additions

ADD
Show:
© 2015 Microsoft