Autodesk.AutoCAD.Customization Namespace > ImageMenuItem Class > ImageMenuItem Constructor > ImageMenuItem(ImageMenu, MenuMacro, string, string) Constructor
ImageMenuItem.ImageMenuItem(ImageMenu, MenuMacro, string, string) Constructor
Description

 

This constructor sets a macro to execute. It also associates it with a slide and sets the slide library.

Visual Basic
Public Sub New(
    parent As ImageMenu, 
    menuMacro As MenuMacro, 
    slideName As string, 
    slideLibrary As string
)
C#
public ImageMenuItem(
    ImageMenu parent, 
    MenuMacro menuMacro, 
    string slideName, 
    string slideLibrary
);
Parameters
Parameters 
Description 
ImageMenu parent 
Input the ImageMenu that will hold this item. 
MenuMacro menuMacro 
Input the MenuMacro to execute 
string slideName 
Input the name of image file or image within a slide library to show. 
string slideLibrary 
Input the name of the slide library. 
Links
   Comments?