ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Framework.Contracts Namespace / DynamicMenu Class / Add Method / Add(String,String,Boolean,Boolean,Boolean) 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.

In This Topic
    Add(String,String,Boolean,Boolean,Boolean) 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 _
    ) 

    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.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also