IUIAutomationTextRange2 interface

Extends the IUIAutomationTextRange interface to enable Microsoft UI Automation clients to programmatically invoke context menus.


The IUIAutomationTextRange2 interface has these methods.

Method Description
IUIAutomationTextRange2::ShowContextMenu Programmatically invokes a context menu on the target text range.


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