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

 

A constructor which lets you specify the placement of the PopMenuItem.

Visual Basic
Public Sub New(
    menuMacro As MenuMacro, 
    name As string, 
    insertBefore As PopMenuItemBase, 
    parent As PopMenu, 
    index As Integer
)
C#
public PopMenuItem(
    MenuMacro menuMacro, 
    string name, 
    PopMenuItemBase insertBefore, 
    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. 
PopMenuItemBase insertBefore 
Input the item before which to insert. 
PopMenu parent 
Input the parent. 
int index 
Input the index at which to insert a new PopMenuItem in the parent's collection. 
Links
   Comments?