ArcGIS Pro 2.7 API Reference Guide
Add(String,String,Boolean,Boolean,Boolean) Method

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.
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 10, Windows 8.1

See Also

Reference

DynamicMenu Class
DynamicMenu Members
Overload List