149 references to MenuCommands
System.Design (1)
src\winforms\artifacts\obj\System.Design.Facade\Release\net11.0\System.Design.Forwards.cs (1)
97[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Windows.Forms.Design.MenuCommands))]
System.Windows.Forms.Design (148)
System\ComponentModel\Design\ComponentDesigner.cs (1)
587=> GetService<IMenuCommandService>()?.ShowContextMenu(MenuCommands.SelectionMenu, x, y);
System\ComponentModel\Design\DesignerActionPanel.cs (25)
140MenuCommands.KeyCancel, 141MenuCommands.KeyReverseCancel, 142MenuCommands.KeyDefaultAction, 143MenuCommands.KeyEnd, 144MenuCommands.KeyHome, 145MenuCommands.KeyMoveDown, 146MenuCommands.KeyMoveLeft, 147MenuCommands.KeyMoveRight, 148MenuCommands.KeyMoveUp, 149MenuCommands.KeyNudgeDown, 150MenuCommands.KeyNudgeHeightDecrease, 151MenuCommands.KeyNudgeHeightIncrease, 152MenuCommands.KeyNudgeLeft, 153MenuCommands.KeyNudgeRight, 154MenuCommands.KeyNudgeUp, 155MenuCommands.KeyNudgeWidthDecrease, 156MenuCommands.KeyNudgeWidthIncrease, 157MenuCommands.KeySizeHeightDecrease, 158MenuCommands.KeySizeHeightIncrease, 159MenuCommands.KeySizeWidthDecrease, 160MenuCommands.KeySizeWidthIncrease, 161MenuCommands.KeySelectNext, 162MenuCommands.KeySelectPrevious, 163MenuCommands.KeyShiftEnd, 164MenuCommands.KeyShiftHome,
System\ComponentModel\Design\DesignerActionUI.cs (1)
95_cmdShowDesignerActions = new MenuCommand(OnKeyShowDesignerActions, MenuCommands.KeyInvokeSmartTag);
System\Windows\Forms\Design\BaseContextMenuStrip.cs (1)
189stdMenuItem = new StandardCommandToolStripMenuItem(MenuCommands.DesignerProperties, SR.ContextMenuProperties, "properties", _serviceProvider);
System\Windows\Forms\Design\CommandSet.cs (20)
119MenuCommands.DesignerProperties, 127MenuCommands.KeyCancel, 134MenuCommands.KeyReverseCancel, 141MenuCommands.KeyDefaultAction, true, 148MenuCommands.KeyMoveUp, true, 155MenuCommands.KeyMoveDown, true, 162MenuCommands.KeyMoveLeft, true, 169MenuCommands.KeyMoveRight, true), 175MenuCommands.KeyNudgeUp, true, 182MenuCommands.KeyNudgeDown, true, 189MenuCommands.KeyNudgeLeft, true, 196MenuCommands.KeyNudgeRight, true, 736if (Equals(cmd, MenuCommands.KeyMoveUp)) 740else if (Equals(cmd, MenuCommands.KeyMoveDown)) 744else if (Equals(cmd, MenuCommands.KeyMoveLeft)) 748else if (Equals(cmd, MenuCommands.KeyMoveRight)) 752else if (Equals(cmd, MenuCommands.KeyNudgeUp)) 757else if (Equals(cmd, MenuCommands.KeyNudgeDown)) 762else if (Equals(cmd, MenuCommands.KeyNudgeLeft)) 767else if (Equals(cmd, MenuCommands.KeyNudgeRight))
System\Windows\Forms\Design\ComponentTray.cs (3)
654mcs.ShowContextMenu(MenuCommands.TraySelectionMenu, location.X, location.Y); 658mcs.ShowContextMenu(MenuCommands.ComponentTrayMenu, location.X, location.Y); 2239mcs.ShowContextMenu(MenuCommands.TraySelectionMenu, location.X, location.Y);
System\Windows\Forms\Design\ControlCommandSet.cs (20)
211MenuCommands.KeySizeWidthIncrease), 217MenuCommands.KeySizeHeightIncrease), 223MenuCommands.KeySizeWidthDecrease), 229MenuCommands.KeySizeHeightDecrease), 235MenuCommands.KeyNudgeWidthIncrease), 241MenuCommands.KeyNudgeHeightIncrease), 247MenuCommands.KeyNudgeWidthDecrease), 253MenuCommands.KeyNudgeHeightDecrease), 259MenuCommands.KeySelectNext), 265MenuCommands.KeySelectPrevious), 447bool reverse = (cmd.CommandID.Equals(MenuCommands.KeyReverseCancel)); 545if (cmd.Equals(MenuCommands.KeySizeHeightDecrease)) 550else if (cmd.Equals(MenuCommands.KeySizeHeightIncrease)) 555else if (cmd.Equals(MenuCommands.KeySizeWidthDecrease)) 560else if (cmd.Equals(MenuCommands.KeySizeWidthIncrease)) 565else if (cmd.Equals(MenuCommands.KeyNudgeHeightDecrease)) 571else if (cmd.Equals(MenuCommands.KeyNudgeHeightIncrease)) 577else if (cmd.Equals(MenuCommands.KeyNudgeWidthDecrease)) 583else if (cmd.Equals(MenuCommands.KeyNudgeWidthIncrease)) 825bool reverse = (cmd.CommandID.Equals(MenuCommands.KeySelectPrevious));
System\Windows\Forms\Design\DocumentDesigner.cs (2)
938mcs.ShowContextMenu(MenuCommands.ContainerMenu, x, y); 959mcs.ShowContextMenu(MenuCommands.SelectionMenu, x, y);
System\Windows\Forms\Design\ParentControlDesigner.EscapeHandler.cs (2)
30if (MenuCommands.KeyCancel.Equals(cmd.CommandID)) 47if (MenuCommands.KeyCancel.Equals(cmd.CommandID))
System\Windows\Forms\Design\StatusCommandUI.cs (1)
33private MenuCommand? StatusRectCommand => _statusRectCommand ??= MenuService?.FindCommand(MenuCommands.SetStatusRectangle);
System\Windows\Forms\Design\TabOrder.cs (9)
82MenuCommands.KeyCancel), 85MenuCommands.KeyDefaultAction), 88MenuCommands.KeyMoveUp), 91MenuCommands.KeyMoveDown), 94MenuCommands.KeyMoveLeft), 97MenuCommands.KeyMoveRight), 100MenuCommands.KeySelectNext), 103MenuCommands.KeySelectPrevious), 109MenuCommands.KeyTabOrderSelect),
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (61)
915if (cmd.Equals(MenuCommands.EditLabel)) 966_shiftPressed = cmd.CommandID.Equals(MenuCommands.KeySizeWidthIncrease) 967|| cmd.CommandID.Equals(MenuCommands.KeySizeWidthDecrease) 968|| cmd.CommandID.Equals(MenuCommands.KeySizeHeightDecrease) 969|| cmd.CommandID.Equals(MenuCommands.KeySizeHeightIncrease); 974if (cmd.CommandID.Equals(MenuCommands.KeyMoveDown)) 990if (cmd.CommandID.Equals(MenuCommands.KeyMoveRight) || cmd.CommandID.Equals(MenuCommands.KeyNudgeRight) || cmd.CommandID.Equals(MenuCommands.KeySizeWidthIncrease)) 999if (cmd.CommandID.Equals(MenuCommands.KeyMoveLeft) || cmd.CommandID.Equals(MenuCommands.KeyNudgeLeft) || cmd.CommandID.Equals(MenuCommands.KeySizeWidthDecrease)) 1008if (cmd.CommandID.Equals(MenuCommands.KeyMoveDown) || cmd.CommandID.Equals(MenuCommands.KeyNudgeDown) || cmd.CommandID.Equals(MenuCommands.KeySizeHeightIncrease)) 1014if (cmd.CommandID.Equals(MenuCommands.KeyMoveUp) || cmd.CommandID.Equals(MenuCommands.KeyNudgeUp) || cmd.CommandID.Equals(MenuCommands.KeySizeHeightDecrease)) 1045bool reverse = (cmd.CommandID.Equals(MenuCommands.KeyReverseCancel)); 1071bool reverse = cmd.CommandID.Equals(MenuCommands.KeySelectPrevious); 1464_oldCommands.Add(mcs.FindCommand(MenuCommands.KeySelectNext)); 1465_oldCommands.Add(mcs.FindCommand(MenuCommands.KeySelectPrevious)); 1466_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyDefaultAction)); 1468_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyMoveUp)); 1469_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyMoveDown)); 1470_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyMoveLeft)); 1471_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyMoveRight)); 1473_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyNudgeUp)); 1474_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyNudgeDown)); 1475_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyNudgeLeft)); 1476_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyNudgeRight)); 1478_oldCommands.Add(mcs.FindCommand(MenuCommands.KeySizeWidthIncrease)); 1479_oldCommands.Add(mcs.FindCommand(MenuCommands.KeySizeHeightIncrease)); 1480_oldCommands.Add(mcs.FindCommand(MenuCommands.KeySizeWidthDecrease)); 1481_oldCommands.Add(mcs.FindCommand(MenuCommands.KeySizeHeightDecrease)); 1483_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyCancel)); 1484_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyReverseCancel)); 1487_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyInvokeSmartTag)); 1499_newCommands.Add(new MenuCommand(new EventHandler(OnKeySelect), MenuCommands.KeySelectNext)); 1500_newCommands.Add(new MenuCommand(new EventHandler(OnKeySelect), MenuCommands.KeySelectPrevious)); 1501_newCommands.Add(new MenuCommand(new EventHandler(OnKeyDefault), MenuCommands.KeyDefaultAction)); 1502_newCommands.Add(new MenuCommand(new EventHandler(OnKeyEdit), MenuCommands.EditLabel)); 1504_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeyMoveUp)); 1505_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeyMoveDown)); 1506_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeyMoveLeft)); 1507_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeyMoveRight)); 1509_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeyNudgeUp)); 1510_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeyNudgeDown)); 1511_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeyNudgeLeft)); 1512_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeyNudgeRight)); 1514_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeySizeWidthIncrease)); 1515_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeySizeHeightIncrease)); 1516_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeySizeWidthDecrease)); 1517_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeySizeHeightDecrease)); 1519_newCommands.Add(new MenuCommand(new EventHandler(OnKeyCancel), MenuCommands.KeyCancel)); 1520_newCommands.Add(new MenuCommand(new EventHandler(OnKeyCancel), MenuCommands.KeyReverseCancel)); 1524_newCommands.Add(new MenuCommand(new EventHandler(OnCommandHome), MenuCommands.KeyHome)); 1525_newCommands.Add(new MenuCommand(new EventHandler(OnCommandEnd), MenuCommands.KeyEnd)); 1526_newCommands.Add(new MenuCommand(new EventHandler(OnCommandHome), MenuCommands.KeyShiftHome)); 1527_newCommands.Add(new MenuCommand(new EventHandler(OnCommandEnd), MenuCommands.KeyShiftEnd)); 1530_newCommands.Add(new MenuCommand(new EventHandler(OnKeyShowDesignerActions), MenuCommands.KeyInvokeSmartTag));
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (2)
438_designerShortCutCommand = new MenuCommand(OnKeyShowDesignerActions, MenuCommands.KeyInvokeSmartTag); 441_oldShortCutCommand = menuCommandService.FindCommand(MenuCommands.KeyInvokeSmartTag);