Autodesk.AutoCAD.Customization Namespace > ScreenMenuItem Class > ScreenMenuItem Constructor > ScreenMenuItem(ScreenMenu, MenuMacro, int) Constructor
ScreenMenuItem.ScreenMenuItem(ScreenMenu, MenuMacro, int) Constructor
Description

 

This constructor sets the parent for the screen menu item, as well as a macro to reference. You may also select its index position.

Visual Basic
Public Sub New(
    parent As ScreenMenu, 
    menuMacro As MenuMacro, 
    index As Integer
)
C#
public ScreenMenuItem(
    ScreenMenu parent, 
    MenuMacro menuMacro, 
    int index
);
Parameters
Parameters 
Description 
ScreenMenu parent 
Input the parent screen menu that will contain this menu item. 
MenuMacro menuMacro 
Input the MenuMacro that this item references. 
int index 
Locates the menu item at a specific index within the parent's ScreenMenuItemCollection
Links
   Comments?