1 instantiation of MenuCommands
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\MenuCommandsTests.cs (1)
14new MenuCommands();
186 references to MenuCommands
DesignSurfaceExt (1)
DesignSurfaceExt.cs (1)
357"INVOKESMARTTAG" => MenuCommands.KeyInvokeSmartTag,
System.Design (1)
artifacts\obj\System.Design.Facade\Release\net9.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, 742if (Equals(cmd, MenuCommands.KeyMoveUp)) 746else if (Equals(cmd, MenuCommands.KeyMoveDown)) 750else if (Equals(cmd, MenuCommands.KeyMoveLeft)) 754else if (Equals(cmd, MenuCommands.KeyMoveRight)) 758else if (Equals(cmd, MenuCommands.KeyNudgeUp)) 763else if (Equals(cmd, MenuCommands.KeyNudgeDown)) 768else if (Equals(cmd, MenuCommands.KeyNudgeLeft)) 773else if (Equals(cmd, MenuCommands.KeyNudgeRight))
System\Windows\Forms\Design\ComponentTray.cs (3)
660mcs.ShowContextMenu(MenuCommands.TraySelectionMenu, location.X, location.Y); 664mcs.ShowContextMenu(MenuCommands.ComponentTrayMenu, location.X, location.Y); 2257mcs.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), 450bool reverse = (cmd.CommandID.Equals(MenuCommands.KeyReverseCancel)); 548if (cmd.Equals(MenuCommands.KeySizeHeightDecrease)) 553else if (cmd.Equals(MenuCommands.KeySizeHeightIncrease)) 558else if (cmd.Equals(MenuCommands.KeySizeWidthDecrease)) 563else if (cmd.Equals(MenuCommands.KeySizeWidthIncrease)) 568else if (cmd.Equals(MenuCommands.KeyNudgeHeightDecrease)) 574else if (cmd.Equals(MenuCommands.KeyNudgeHeightIncrease)) 580else if (cmd.Equals(MenuCommands.KeyNudgeWidthDecrease)) 586else if (cmd.Equals(MenuCommands.KeyNudgeWidthIncrease)) 828bool reverse = (cmd.CommandID.Equals(MenuCommands.KeySelectPrevious));
System\Windows\Forms\Design\DocumentDesigner.cs (2)
995mcs.ShowContextMenu(MenuCommands.ContainerMenu, x, y); 1016mcs.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)
927if (cmd.Equals(MenuCommands.EditLabel)) 978_shiftPressed = cmd.CommandID.Equals(MenuCommands.KeySizeWidthIncrease) 979|| cmd.CommandID.Equals(MenuCommands.KeySizeWidthDecrease) 980|| cmd.CommandID.Equals(MenuCommands.KeySizeHeightDecrease) 981|| cmd.CommandID.Equals(MenuCommands.KeySizeHeightIncrease); 986if (cmd.CommandID.Equals(MenuCommands.KeyMoveDown)) 1002if (cmd.CommandID.Equals(MenuCommands.KeyMoveRight) || cmd.CommandID.Equals(MenuCommands.KeyNudgeRight) || cmd.CommandID.Equals(MenuCommands.KeySizeWidthIncrease)) 1011if (cmd.CommandID.Equals(MenuCommands.KeyMoveLeft) || cmd.CommandID.Equals(MenuCommands.KeyNudgeLeft) || cmd.CommandID.Equals(MenuCommands.KeySizeWidthDecrease)) 1020if (cmd.CommandID.Equals(MenuCommands.KeyMoveDown) || cmd.CommandID.Equals(MenuCommands.KeyNudgeDown) || cmd.CommandID.Equals(MenuCommands.KeySizeHeightIncrease)) 1026if (cmd.CommandID.Equals(MenuCommands.KeyMoveUp) || cmd.CommandID.Equals(MenuCommands.KeyNudgeUp) || cmd.CommandID.Equals(MenuCommands.KeySizeHeightDecrease)) 1057bool reverse = (cmd.CommandID.Equals(MenuCommands.KeyReverseCancel)); 1083bool reverse = cmd.CommandID.Equals(MenuCommands.KeySelectPrevious); 1476_oldCommands.Add(mcs.FindCommand(MenuCommands.KeySelectNext)); 1477_oldCommands.Add(mcs.FindCommand(MenuCommands.KeySelectPrevious)); 1478_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyDefaultAction)); 1480_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyMoveUp)); 1481_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyMoveDown)); 1482_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyMoveLeft)); 1483_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyMoveRight)); 1485_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyNudgeUp)); 1486_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyNudgeDown)); 1487_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyNudgeLeft)); 1488_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyNudgeRight)); 1490_oldCommands.Add(mcs.FindCommand(MenuCommands.KeySizeWidthIncrease)); 1491_oldCommands.Add(mcs.FindCommand(MenuCommands.KeySizeHeightIncrease)); 1492_oldCommands.Add(mcs.FindCommand(MenuCommands.KeySizeWidthDecrease)); 1493_oldCommands.Add(mcs.FindCommand(MenuCommands.KeySizeHeightDecrease)); 1495_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyCancel)); 1496_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyReverseCancel)); 1499_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyInvokeSmartTag)); 1511_newCommands.Add(new MenuCommand(new EventHandler(OnKeySelect), MenuCommands.KeySelectNext)); 1512_newCommands.Add(new MenuCommand(new EventHandler(OnKeySelect), MenuCommands.KeySelectPrevious)); 1513_newCommands.Add(new MenuCommand(new EventHandler(OnKeyDefault), MenuCommands.KeyDefaultAction)); 1514_newCommands.Add(new MenuCommand(new EventHandler(OnKeyEdit), MenuCommands.EditLabel)); 1516_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeyMoveUp)); 1517_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeyMoveDown)); 1518_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeyMoveLeft)); 1519_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeyMoveRight)); 1521_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeyNudgeUp)); 1522_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeyNudgeDown)); 1523_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeyNudgeLeft)); 1524_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeyNudgeRight)); 1526_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeySizeWidthIncrease)); 1527_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeySizeHeightIncrease)); 1528_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeySizeWidthDecrease)); 1529_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeySizeHeightDecrease)); 1531_newCommands.Add(new MenuCommand(new EventHandler(OnKeyCancel), MenuCommands.KeyCancel)); 1532_newCommands.Add(new MenuCommand(new EventHandler(OnKeyCancel), MenuCommands.KeyReverseCancel)); 1536_newCommands.Add(new MenuCommand(new EventHandler(OnCommandHome), MenuCommands.KeyHome)); 1537_newCommands.Add(new MenuCommand(new EventHandler(OnCommandEnd), MenuCommands.KeyEnd)); 1538_newCommands.Add(new MenuCommand(new EventHandler(OnCommandHome), MenuCommands.KeyShiftHome)); 1539_newCommands.Add(new MenuCommand(new EventHandler(OnCommandEnd), MenuCommands.KeyShiftEnd)); 1542_newCommands.Add(new MenuCommand(new EventHandler(OnKeyShowDesignerActions), MenuCommands.KeyInvokeSmartTag));
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (2)
450_designerShortCutCommand = new MenuCommand(OnKeyShowDesignerActions, MenuCommands.KeyInvokeSmartTag); 453_oldShortCutCommand = menuCommandService.FindCommand(MenuCommands.KeyInvokeSmartTag);
System.Windows.Forms.Design.Tests (36)
System\Windows\Forms\Design\MenuCommandsTests.cs (36)
19yield return new object[] { MenuCommands.ComponentTrayMenu, new CommandID(new Guid("74d21312-2aee-11d1-8bfb-00a0c90f26f7"), 1286) }; 20yield return new object[] { MenuCommands.ContainerMenu, new CommandID(new Guid("74d21312-2aee-11d1-8bfb-00a0c90f26f7"), 1281) }; 21yield return new object[] { MenuCommands.DesignerProperties, new CommandID(new Guid("74d21313-2aee-11d1-8bfb-00a0c90f26f7"), 4097) }; 22yield return new object[] { MenuCommands.EditLabel, new CommandID(new Guid("5efc7975-14bc-11cf-9b2b-00aa00573819"), 338) }; 23yield return new object[] { MenuCommands.KeyCancel, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 103) }; 24yield return new object[] { MenuCommands.KeyDefaultAction, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 3) }; 25yield return new object[] { MenuCommands.KeyEnd, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 17) }; 26yield return new object[] { MenuCommands.KeyHome, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 15) }; 27yield return new object[] { MenuCommands.KeyInvokeSmartTag, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 147) }; 28yield return new object[] { MenuCommands.KeyMoveDown, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 13) }; 29yield return new object[] { MenuCommands.KeyMoveLeft, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 7) }; 30yield return new object[] { MenuCommands.KeyMoveRight, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 9) }; 31yield return new object[] { MenuCommands.KeyMoveUp, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 11) }; 32yield return new object[] { MenuCommands.KeyNudgeDown, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1225) }; 33yield return new object[] { MenuCommands.KeyNudgeHeightDecrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1229) }; 34yield return new object[] { MenuCommands.KeyNudgeHeightIncrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1228) }; 35yield return new object[] { MenuCommands.KeyNudgeLeft, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1224) }; 36yield return new object[] { MenuCommands.KeyNudgeRight, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1226) }; 37yield return new object[] { MenuCommands.KeyNudgeUp, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1227) }; 38yield return new object[] { MenuCommands.KeyNudgeWidthDecrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1230) }; 39yield return new object[] { MenuCommands.KeyNudgeWidthDecrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1230) }; 40yield return new object[] { MenuCommands.KeyNudgeHeightIncrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1228) }; 41yield return new object[] { MenuCommands.KeyReverseCancel, new CommandID(new Guid("74d21313-2aee-11d1-8bfb-00a0c90f26f7"), 16385) }; 42yield return new object[] { MenuCommands.KeySelectNext, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 4) }; 43yield return new object[] { MenuCommands.KeySelectPrevious, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 5) }; 44yield return new object[] { MenuCommands.KeyShiftEnd, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 18) }; 45yield return new object[] { MenuCommands.KeyShiftHome, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 16) }; 46yield return new object[] { MenuCommands.KeySizeHeightDecrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 14) }; 47yield return new object[] { MenuCommands.KeySizeHeightIncrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 12) }; 48yield return new object[] { MenuCommands.KeySizeWidthDecrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 8) }; 49yield return new object[] { MenuCommands.KeySizeWidthIncrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 10) }; 50yield return new object[] { MenuCommands.KeyTabOrderSelect, new CommandID(new Guid("74d21313-2aee-11d1-8bfb-00a0c90f26f7"), 16405) }; 51yield return new object[] { MenuCommands.SelectionMenu, new CommandID(new Guid("74d21312-2aee-11d1-8bfb-00a0c90f26f7"), 1280) }; 52yield return new object[] { MenuCommands.SetStatusRectangle, new CommandID(new Guid("74d21313-2aee-11d1-8bfb-00a0c90f26f7"), 16388) }; 53yield return new object[] { MenuCommands.SetStatusText, new CommandID(new Guid("74d21313-2aee-11d1-8bfb-00a0c90f26f7"), 16387) }; 54yield return new object[] { MenuCommands.TraySelectionMenu, new CommandID(new Guid("74d21312-2aee-11d1-8bfb-00a0c90f26f7"), 1283) };