ArcGIS Pro 2.7 API Reference Guide
Add(String,String,String,String,ImageSource,Boolean,Boolean,Boolean,Delegate,Object[]) Method

ArcGIS.Desktop.Framework.Contracts Namespace > DynamicMenu Class > Add Method : Add(String,String,String,String,ImageSource,Boolean,Boolean,Boolean,Delegate,Object[]) Method
The menu item label.
The path to an image file to use.
The tooltip heading.
The tooltip body.
The image to show with the tooltip.
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.
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 tooltipTitle As String, _
   Optional ByVal tooltipText As String, _
   Optional ByVal tooltipImage As ImageSource, _
   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.
tooltipTitle
The tooltip heading.
tooltipText
The tooltip body.
tooltipImage
The image to show with the tooltip.
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 10, Windows 8.1

See Also

Reference

DynamicMenu Class
DynamicMenu Members
Overload List