Autodesk.AutoCAD.Customization Namespace > PopMenuItem Class > PopMenuItem Constructor > PopMenuItem(MenuMacro, string, PopMenu, int) Constructor
PopMenuItem.PopMenuItem(MenuMacro, string, PopMenu, int) Constructor
Description

 

Constructor.

Visual Basic
Public Sub New(
    menuMacro As MenuMacro, 
    name As string, 
    parent As PopMenu, 
    index As Integer
)
C#
public PopMenuItem(
    MenuMacro menuMacro, 
    string name, 
    PopMenu parent, 
    int index
);
Parameters
Parameters 
Description 
MenuMacro menuMacro 
Input the macro to execute 
string name 
Input the name of the PopMenuItem, if different from the name of the MenuMacro; otherwise, can be null 
PopMenu parent 
Input the parent 
int index 
Input the index at which to insert a new PopMenuItem in the parent's collection 
Links
   Comments?