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

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

ArcGIS Pro version: 3 or higher.
See Also