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

 

This constructor creates a menu item with no macro assigned, which is the equivalent of a separator. Assigning a MenuMacro converts the separator to a regular menu item. It also positions the PopMenuItem.

Visual Basic
Public Sub New(
    parent As PopMenu, 
    index As Integer
)
C#
public PopMenuItem(
    PopMenu parent, 
    int index
);
Parameters
Parameters 
Description 
PopMenu parent 
Input the parent. 
int index 
Input the index at which to insert a new PopMenuItem in the parent's collection. 
Links
   Comments?