ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Framework.Contracts Namespace / DynamicMenu Class / OnClick Method
The index of the menu item clicked.

OnClick Method (DynamicMenu)
Invoked when a menu item is clicked.
Syntax
protected internal virtual void OnClick( 
   int index
)

Parameters

index
The index of the menu item clicked.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.0 or higher.
See Also