ArcGIS Pro 2.9 API Reference Guide
OnClick Method (DynamicMenu)

ArcGIS.Desktop.Framework.Contracts Namespace > DynamicMenu Class : OnClick Method
The index of the menu item clicked.
Invoked when a menu item is clicked.
Syntax
protected internal virtual void OnClick( 
   int index
)
Protected Friend Overridable Sub OnClick( _
   ByVal index As Integer _
) 

Parameters

index
The index of the menu item clicked.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

DynamicMenu Class
DynamicMenu Members