Autodesk.AutoCAD.Customization Namespace > MenuAccelerator Class > MenuAccelerator Constructor > MenuAccelerator(MenuMacro, string, MenuGroup, int) Constructor
MenuAccelerator.MenuAccelerator(MenuMacro, string, MenuGroup, int) Constructor
Description

 

This constructor creates a new MenuAccelerator, settings its AcceleratorShortcutKey and index position.

Visual Basic
Public Sub New(
    menuMacro As MenuMacro, 
    acceleratorKeyCombination As string, 
    parent As MenuGroup, 
    index As Integer
)
C#
public MenuAccelerator(
    MenuMacro menuMacro, 
    string acceleratorKeyCombination, 
    MenuGroup parent, 
    int index
);
Parameters
Parameters 
Description 
MenuMacro menuMacro 
Input the macro to assign to this accelerator key. 
string acceleratorKeyCombination 
Input the AcceleratorShortcutKey property. 
MenuGroup parent 
Input the MenuGroup to which the new accelerator will be appended. 
int index 
Input the index to insert object in parent collection. 
Links
   Comments?