1 instantiation of MenuCommands
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\MenuCommandsTests.cs (1)
14
new
MenuCommands
();
186 references to MenuCommands
DesignSurfaceExt (1)
DesignSurfaceExt.cs (1)
357
"INVOKESMARTTAG" =>
MenuCommands
.KeyInvokeSmartTag,
System.Design (1)
artifacts\obj\System.Design.Facade\Release\net10.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)
140
MenuCommands
.KeyCancel,
141
MenuCommands
.KeyReverseCancel,
142
MenuCommands
.KeyDefaultAction,
143
MenuCommands
.KeyEnd,
144
MenuCommands
.KeyHome,
145
MenuCommands
.KeyMoveDown,
146
MenuCommands
.KeyMoveLeft,
147
MenuCommands
.KeyMoveRight,
148
MenuCommands
.KeyMoveUp,
149
MenuCommands
.KeyNudgeDown,
150
MenuCommands
.KeyNudgeHeightDecrease,
151
MenuCommands
.KeyNudgeHeightIncrease,
152
MenuCommands
.KeyNudgeLeft,
153
MenuCommands
.KeyNudgeRight,
154
MenuCommands
.KeyNudgeUp,
155
MenuCommands
.KeyNudgeWidthDecrease,
156
MenuCommands
.KeyNudgeWidthIncrease,
157
MenuCommands
.KeySizeHeightDecrease,
158
MenuCommands
.KeySizeHeightIncrease,
159
MenuCommands
.KeySizeWidthDecrease,
160
MenuCommands
.KeySizeWidthIncrease,
161
MenuCommands
.KeySelectNext,
162
MenuCommands
.KeySelectPrevious,
163
MenuCommands
.KeyShiftEnd,
164
MenuCommands
.KeyShiftHome,
System\ComponentModel\Design\DesignerActionUI.cs (1)
95
_cmdShowDesignerActions = new MenuCommand(OnKeyShowDesignerActions,
MenuCommands
.KeyInvokeSmartTag);
System\Windows\Forms\Design\BaseContextMenuStrip.cs (1)
189
stdMenuItem = new StandardCommandToolStripMenuItem(
MenuCommands
.DesignerProperties, SR.ContextMenuProperties, "properties", _serviceProvider);
System\Windows\Forms\Design\CommandSet.cs (20)
119
MenuCommands
.DesignerProperties,
127
MenuCommands
.KeyCancel,
134
MenuCommands
.KeyReverseCancel,
141
MenuCommands
.KeyDefaultAction, true,
148
MenuCommands
.KeyMoveUp, true,
155
MenuCommands
.KeyMoveDown, true,
162
MenuCommands
.KeyMoveLeft, true,
169
MenuCommands
.KeyMoveRight, true),
175
MenuCommands
.KeyNudgeUp, true,
182
MenuCommands
.KeyNudgeDown, true,
189
MenuCommands
.KeyNudgeLeft, true,
196
MenuCommands
.KeyNudgeRight, true,
742
if (Equals(cmd,
MenuCommands
.KeyMoveUp))
746
else if (Equals(cmd,
MenuCommands
.KeyMoveDown))
750
else if (Equals(cmd,
MenuCommands
.KeyMoveLeft))
754
else if (Equals(cmd,
MenuCommands
.KeyMoveRight))
758
else if (Equals(cmd,
MenuCommands
.KeyNudgeUp))
763
else if (Equals(cmd,
MenuCommands
.KeyNudgeDown))
768
else if (Equals(cmd,
MenuCommands
.KeyNudgeLeft))
773
else if (Equals(cmd,
MenuCommands
.KeyNudgeRight))
System\Windows\Forms\Design\ComponentTray.cs (3)
660
mcs.ShowContextMenu(
MenuCommands
.TraySelectionMenu, location.X, location.Y);
664
mcs.ShowContextMenu(
MenuCommands
.ComponentTrayMenu, location.X, location.Y);
2257
mcs.ShowContextMenu(
MenuCommands
.TraySelectionMenu, location.X, location.Y);
System\Windows\Forms\Design\ControlCommandSet.cs (20)
211
MenuCommands
.KeySizeWidthIncrease),
217
MenuCommands
.KeySizeHeightIncrease),
223
MenuCommands
.KeySizeWidthDecrease),
229
MenuCommands
.KeySizeHeightDecrease),
235
MenuCommands
.KeyNudgeWidthIncrease),
241
MenuCommands
.KeyNudgeHeightIncrease),
247
MenuCommands
.KeyNudgeWidthDecrease),
253
MenuCommands
.KeyNudgeHeightDecrease),
259
MenuCommands
.KeySelectNext),
265
MenuCommands
.KeySelectPrevious),
450
bool reverse = (cmd.CommandID.Equals(
MenuCommands
.KeyReverseCancel));
548
if (cmd.Equals(
MenuCommands
.KeySizeHeightDecrease))
553
else if (cmd.Equals(
MenuCommands
.KeySizeHeightIncrease))
558
else if (cmd.Equals(
MenuCommands
.KeySizeWidthDecrease))
563
else if (cmd.Equals(
MenuCommands
.KeySizeWidthIncrease))
568
else if (cmd.Equals(
MenuCommands
.KeyNudgeHeightDecrease))
574
else if (cmd.Equals(
MenuCommands
.KeyNudgeHeightIncrease))
580
else if (cmd.Equals(
MenuCommands
.KeyNudgeWidthDecrease))
586
else if (cmd.Equals(
MenuCommands
.KeyNudgeWidthIncrease))
828
bool reverse = (cmd.CommandID.Equals(
MenuCommands
.KeySelectPrevious));
System\Windows\Forms\Design\DocumentDesigner.cs (2)
980
mcs.ShowContextMenu(
MenuCommands
.ContainerMenu, x, y);
1001
mcs.ShowContextMenu(
MenuCommands
.SelectionMenu, x, y);
System\Windows\Forms\Design\ParentControlDesigner.EscapeHandler.cs (2)
30
if (
MenuCommands
.KeyCancel.Equals(cmd.CommandID))
47
if (
MenuCommands
.KeyCancel.Equals(cmd.CommandID))
System\Windows\Forms\Design\StatusCommandUI.cs (1)
33
private MenuCommand? StatusRectCommand => _statusRectCommand ??= MenuService?.FindCommand(
MenuCommands
.SetStatusRectangle);
System\Windows\Forms\Design\TabOrder.cs (9)
82
MenuCommands
.KeyCancel),
85
MenuCommands
.KeyDefaultAction),
88
MenuCommands
.KeyMoveUp),
91
MenuCommands
.KeyMoveDown),
94
MenuCommands
.KeyMoveLeft),
97
MenuCommands
.KeyMoveRight),
100
MenuCommands
.KeySelectNext),
103
MenuCommands
.KeySelectPrevious),
109
MenuCommands
.KeyTabOrderSelect),
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (61)
927
if (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);
986
if (cmd.CommandID.Equals(
MenuCommands
.KeyMoveDown))
1002
if (cmd.CommandID.Equals(
MenuCommands
.KeyMoveRight) || cmd.CommandID.Equals(
MenuCommands
.KeyNudgeRight) || cmd.CommandID.Equals(
MenuCommands
.KeySizeWidthIncrease))
1011
if (cmd.CommandID.Equals(
MenuCommands
.KeyMoveLeft) || cmd.CommandID.Equals(
MenuCommands
.KeyNudgeLeft) || cmd.CommandID.Equals(
MenuCommands
.KeySizeWidthDecrease))
1020
if (cmd.CommandID.Equals(
MenuCommands
.KeyMoveDown) || cmd.CommandID.Equals(
MenuCommands
.KeyNudgeDown) || cmd.CommandID.Equals(
MenuCommands
.KeySizeHeightIncrease))
1026
if (cmd.CommandID.Equals(
MenuCommands
.KeyMoveUp) || cmd.CommandID.Equals(
MenuCommands
.KeyNudgeUp) || cmd.CommandID.Equals(
MenuCommands
.KeySizeHeightDecrease))
1057
bool reverse = (cmd.CommandID.Equals(
MenuCommands
.KeyReverseCancel));
1083
bool 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)
19
yield return new object[] {
MenuCommands
.ComponentTrayMenu, new CommandID(new Guid("74d21312-2aee-11d1-8bfb-00a0c90f26f7"), 1286) };
20
yield return new object[] {
MenuCommands
.ContainerMenu, new CommandID(new Guid("74d21312-2aee-11d1-8bfb-00a0c90f26f7"), 1281) };
21
yield return new object[] {
MenuCommands
.DesignerProperties, new CommandID(new Guid("74d21313-2aee-11d1-8bfb-00a0c90f26f7"), 4097) };
22
yield return new object[] {
MenuCommands
.EditLabel, new CommandID(new Guid("5efc7975-14bc-11cf-9b2b-00aa00573819"), 338) };
23
yield return new object[] {
MenuCommands
.KeyCancel, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 103) };
24
yield return new object[] {
MenuCommands
.KeyDefaultAction, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 3) };
25
yield return new object[] {
MenuCommands
.KeyEnd, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 17) };
26
yield return new object[] {
MenuCommands
.KeyHome, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 15) };
27
yield return new object[] {
MenuCommands
.KeyInvokeSmartTag, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 147) };
28
yield return new object[] {
MenuCommands
.KeyMoveDown, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 13) };
29
yield return new object[] {
MenuCommands
.KeyMoveLeft, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 7) };
30
yield return new object[] {
MenuCommands
.KeyMoveRight, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 9) };
31
yield return new object[] {
MenuCommands
.KeyMoveUp, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 11) };
32
yield return new object[] {
MenuCommands
.KeyNudgeDown, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1225) };
33
yield return new object[] {
MenuCommands
.KeyNudgeHeightDecrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1229) };
34
yield return new object[] {
MenuCommands
.KeyNudgeHeightIncrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1228) };
35
yield return new object[] {
MenuCommands
.KeyNudgeLeft, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1224) };
36
yield return new object[] {
MenuCommands
.KeyNudgeRight, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1226) };
37
yield return new object[] {
MenuCommands
.KeyNudgeUp, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1227) };
38
yield return new object[] {
MenuCommands
.KeyNudgeWidthDecrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1230) };
39
yield return new object[] {
MenuCommands
.KeyNudgeWidthDecrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1230) };
40
yield return new object[] {
MenuCommands
.KeyNudgeHeightIncrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1228) };
41
yield return new object[] {
MenuCommands
.KeyReverseCancel, new CommandID(new Guid("74d21313-2aee-11d1-8bfb-00a0c90f26f7"), 16385) };
42
yield return new object[] {
MenuCommands
.KeySelectNext, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 4) };
43
yield return new object[] {
MenuCommands
.KeySelectPrevious, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 5) };
44
yield return new object[] {
MenuCommands
.KeyShiftEnd, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 18) };
45
yield return new object[] {
MenuCommands
.KeyShiftHome, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 16) };
46
yield return new object[] {
MenuCommands
.KeySizeHeightDecrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 14) };
47
yield return new object[] {
MenuCommands
.KeySizeHeightIncrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 12) };
48
yield return new object[] {
MenuCommands
.KeySizeWidthDecrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 8) };
49
yield return new object[] {
MenuCommands
.KeySizeWidthIncrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 10) };
50
yield return new object[] {
MenuCommands
.KeyTabOrderSelect, new CommandID(new Guid("74d21313-2aee-11d1-8bfb-00a0c90f26f7"), 16405) };
51
yield return new object[] {
MenuCommands
.SelectionMenu, new CommandID(new Guid("74d21312-2aee-11d1-8bfb-00a0c90f26f7"), 1280) };
52
yield return new object[] {
MenuCommands
.SetStatusRectangle, new CommandID(new Guid("74d21313-2aee-11d1-8bfb-00a0c90f26f7"), 16388) };
53
yield return new object[] {
MenuCommands
.SetStatusText, new CommandID(new Guid("74d21313-2aee-11d1-8bfb-00a0c90f26f7"), 16387) };
54
yield return new object[] {
MenuCommands
.TraySelectionMenu, new CommandID(new Guid("74d21312-2aee-11d1-8bfb-00a0c90f26f7"), 1283) };