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

In This Topic
    OnClick Method (DynamicMenu)
    In This Topic
    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

    ArcGIS Pro version: 3 or higher.
    See Also