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

 

This constructor for ScreenMenu sets the parent and name properties of the screen menu. It also sets aliases and start line properties.

Visual Basic
Public Sub New(
    parent As MenuGroup, 
    name As string, 
    aliases As StringCollection, 
    start As Integer, 
    createBlankMenuItems As bool
)
C#
public ScreenMenu(
    MenuGroup parent, 
    string name, 
    StringCollection aliases, 
    int start, 
    bool createBlankMenuItems
);
Parameters
Parameters 
Description 
MenuGroup parent 
Input the parent MenuGroup
string name 
Input the name of the screen menu. 
StringCollection aliases 
Input a collection of strings to use as aliases. 
int start 
Input the line number on which to start inserting menu items. 
bool createBlankMenuItems 
If true, creates a screen menu with 22 blank lines. 
Links
   Comments?