ITextRangeProvider2 interface

Extends the ITextRangeProvider interface to enable Microsoft UI Automation providers to invoke context menus.

When to implement

This interface should be implemented when developing a provider for a text edit control that edits text programmatically.

Members

The ITextRangeProvider2 interface inherits from ITextRangeProvider. ITextRangeProvider2 also has these types of members:

Methods

The ITextRangeProvider2 interface has these methods.

MethodDescription
ShowContextMenu

Programmatically invokes a context menu on the target element.

 

Requirements

Minimum supported client

Windows 8.1 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 R2 [desktop apps | Windows Store apps]

Header

UIAutomationCore.h (include UIAutomation.h)

IDL

UIAutomationCore.idl

DLL

UIAutomationCore.dll

IID

IID_ITextRangeProvider2 is defined as 9BBCE42C-1921-4F18-89CA-DBA1910A0386

See also

ITextRangeProvider
Conceptual
UI Automation Providers Overview

 

 

Show: