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)
372
"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)
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)
995
mcs.ShowContextMenu(
MenuCommands
.ContainerMenu, x, y);
1016
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)
943
if (cmd.Equals(
MenuCommands
.EditLabel))
994
_shiftPressed = cmd.CommandID.Equals(
MenuCommands
.KeySizeWidthIncrease)
995
|| cmd.CommandID.Equals(
MenuCommands
.KeySizeWidthDecrease)
996
|| cmd.CommandID.Equals(
MenuCommands
.KeySizeHeightDecrease)
997
|| cmd.CommandID.Equals(
MenuCommands
.KeySizeHeightIncrease);
1002
if (cmd.CommandID.Equals(
MenuCommands
.KeyMoveDown))
1018
if (cmd.CommandID.Equals(
MenuCommands
.KeyMoveRight) || cmd.CommandID.Equals(
MenuCommands
.KeyNudgeRight) || cmd.CommandID.Equals(
MenuCommands
.KeySizeWidthIncrease))
1027
if (cmd.CommandID.Equals(
MenuCommands
.KeyMoveLeft) || cmd.CommandID.Equals(
MenuCommands
.KeyNudgeLeft) || cmd.CommandID.Equals(
MenuCommands
.KeySizeWidthDecrease))
1036
if (cmd.CommandID.Equals(
MenuCommands
.KeyMoveDown) || cmd.CommandID.Equals(
MenuCommands
.KeyNudgeDown) || cmd.CommandID.Equals(
MenuCommands
.KeySizeHeightIncrease))
1042
if (cmd.CommandID.Equals(
MenuCommands
.KeyMoveUp) || cmd.CommandID.Equals(
MenuCommands
.KeyNudgeUp) || cmd.CommandID.Equals(
MenuCommands
.KeySizeHeightDecrease))
1073
bool reverse = (cmd.CommandID.Equals(
MenuCommands
.KeyReverseCancel));
1099
bool reverse = cmd.CommandID.Equals(
MenuCommands
.KeySelectPrevious);
1493
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeySelectNext));
1494
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeySelectPrevious));
1495
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeyDefaultAction));
1497
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeyMoveUp));
1498
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeyMoveDown));
1499
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeyMoveLeft));
1500
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeyMoveRight));
1502
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeyNudgeUp));
1503
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeyNudgeDown));
1504
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeyNudgeLeft));
1505
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeyNudgeRight));
1507
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeySizeWidthIncrease));
1508
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeySizeHeightIncrease));
1509
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeySizeWidthDecrease));
1510
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeySizeHeightDecrease));
1512
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeyCancel));
1513
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeyReverseCancel));
1516
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeyInvokeSmartTag));
1528
_newCommands.Add(new MenuCommand(new EventHandler(OnKeySelect),
MenuCommands
.KeySelectNext));
1529
_newCommands.Add(new MenuCommand(new EventHandler(OnKeySelect),
MenuCommands
.KeySelectPrevious));
1530
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyDefault),
MenuCommands
.KeyDefaultAction));
1531
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyEdit),
MenuCommands
.EditLabel));
1533
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove),
MenuCommands
.KeyMoveUp));
1534
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove),
MenuCommands
.KeyMoveDown));
1535
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove),
MenuCommands
.KeyMoveLeft));
1536
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove),
MenuCommands
.KeyMoveRight));
1538
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove),
MenuCommands
.KeyNudgeUp));
1539
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove),
MenuCommands
.KeyNudgeDown));
1540
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove),
MenuCommands
.KeyNudgeLeft));
1541
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove),
MenuCommands
.KeyNudgeRight));
1543
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove),
MenuCommands
.KeySizeWidthIncrease));
1544
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove),
MenuCommands
.KeySizeHeightIncrease));
1545
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove),
MenuCommands
.KeySizeWidthDecrease));
1546
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove),
MenuCommands
.KeySizeHeightDecrease));
1548
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyCancel),
MenuCommands
.KeyCancel));
1549
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyCancel),
MenuCommands
.KeyReverseCancel));
1553
_newCommands.Add(new MenuCommand(new EventHandler(OnCommandHome),
MenuCommands
.KeyHome));
1554
_newCommands.Add(new MenuCommand(new EventHandler(OnCommandEnd),
MenuCommands
.KeyEnd));
1555
_newCommands.Add(new MenuCommand(new EventHandler(OnCommandHome),
MenuCommands
.KeyShiftHome));
1556
_newCommands.Add(new MenuCommand(new EventHandler(OnCommandEnd),
MenuCommands
.KeyShiftEnd));
1559
_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) };