IRawElementProviderSimple2 interface

Extends the IRawElementProviderSimple interface to enable programmatically invoking context menus.

Members

The IRawElementProviderSimple2 interface inherits from IRawElementProviderSimple. IRawElementProviderSimple2 also has these types of members:

Methods

The IRawElementProviderSimple2 interface has these methods.

MethodDescription
ShowContextMenu

Programmatically invokes a context menu on the target element.

 

Remarks

This interface can be implemented on:

  • Providers that add or override properties or control patterns on a UI element that already has a provider.

If no context menu is available directly on the element on which ShowContextMenu was invoked, the provider should attempt to invoke a context menu on the UI Automation parent of the current item.

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_IRawElementProviderSimple2 is defined as A0A839A9-8DA1-4A82-806A-8E0D44E79F56

 

 

Show: