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

 

Copy constructor. 

It creates a new PopMenu using data from an existing PopMenu, but does not duplicate the list of PopMenuItems.

Visual Basic
Public Sub New(
    popIn As PopMenu, 
    menuGroup As MenuGroup, 
    index As Integer
)
C#
public PopMenu(
    PopMenu popIn, 
    MenuGroup menuGroup, 
    int index
);
Parameters
Parameters 
Description 
PopMenu popIn 
Input the source PopMenu
MenuGroup menuGroup 
Input the parent. 
int index 
Input the index at which to insert new PopMenu in the parent's collection. Since PopMenus are referenced by their ElementID or Aliases, the index value can normally be -1, to simply append this menu to the PopMenuCollection. 
Links
   Comments?