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

 

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

Visual Basic
Public Sub New(
    parent As MenuGroup, 
    name As string, 
    description As string, 
    aliasList As StringCollection, 
    start As Integer, 
    createBlankMenuItems As bool
)
C#
public ScreenMenu(
    MenuGroup parent, 
    string name, 
    string description, 
    StringCollection aliasList, 
    int start, 
    bool createBlankMenuItems
);
Parameters
Parameters 
Description 
MenuGroup parent 
Input the parent MenuGroup
string name 
Input the name of the screen menu. 
string description 
Input a description for the screen menu. 
StringCollection aliasList 
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?