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

 

This constructor sets a macro to execute and sets the array position. 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, 
    index As Integer
)
C#
public ImageMenuItem(
    ImageMenu parent, 
    MenuMacro menuMacro, 
    string slideName, 
    string slideLibrary, 
    int index
);
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. 
int index 
Input the index at which to insert new item in parent array. You may pass in -1 to append the item to end of array. 
Links
   Comments?