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

 

This constructor sets the parent for the screen menu item, as well as a macro to reference.

Visual Basic
Public Sub New(
    parent As ScreenMenu, 
    menuMacro As MenuMacro
)
C#
public ScreenMenuItem(
    ScreenMenu parent, 
    MenuMacro menuMacro
);
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. 
Links
   Comments?