ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Framework.Contracts Namespace / DynamicMenu Class / Add Method / Add(String,String,Boolean,Boolean,Boolean,Delegate,Object[]) Method
The menu item label.
The path to an image file to use.
Is the menu button checked. Default is false.
Is the menu button enabled. Default is true.
Is the menu button label bold. Default is false.
The delegate to call when the menu button is clicked.
The arguments to pass to the delegate.
Version

    Add(String,String,Boolean,Boolean,Boolean,Delegate,Object[]) Method
    Adds a new item to the menu that points to a delegate.
    Syntax

    Parameters

    caption
    The menu item label.
    imagePath
    The path to an image file to use.
    isChecked
    Is the menu button checked. Default is false.
    isEnabled
    Is the menu button enabled. Default is true.
    isBold
    Is the menu button label bold. Default is false.
    method
    The delegate to call when the menu button is clicked.
    args
    The arguments to pass to the delegate.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also