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.

In This Topic
    Add(String,String,Boolean,Boolean,Boolean,Delegate,Object[]) Method
    In This Topic
    Adds a new item to the menu that points to a delegate.
    Syntax
    Protected Overloads Sub Add( _
       ByVal caption As String, _
       Optional ByVal imagePath As String, _
       Optional ByVal isChecked As Boolean, _
       Optional ByVal isEnabled As Boolean, _
       Optional ByVal isBold As Boolean, _
       Optional ByVal method As Delegate, _
       ByVal ParamArray args() As Object _
    ) 

    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