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

 

Creates a screen menu based on the data from another screen menu. It also places it within an index.

Visual Basic
Public Sub New(
    sourceMenu As ScreenMenu, 
    parent As MenuGroup, 
    index As Integer
)
C#
public ScreenMenu(
    ScreenMenu sourceMenu, 
    MenuGroup parent, 
    int index
);
Parameters
Parameters 
Description 
ScreenMenu sourceMenu 
Input the source menu to copy data from. 
MenuGroup parent 
Input the parent MenuGroup
int index 
Input the location within the parent's collection at which to insert the menu. 
Links
   Comments?