1 instantiation of MenuCommands
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\MenuCommandsTests.cs (1)
16
new
MenuCommands
();
187 references to MenuCommands
DesignSurfaceExt (1)
DesignSurfaceExt.cs (1)
350
"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)
968
mcs.ShowContextMenu(
MenuCommands
.ContainerMenu, x, y);
989
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)
918
if (cmd.Equals(
MenuCommands
.EditLabel))
969
_shiftPressed = cmd.CommandID.Equals(
MenuCommands
.KeySizeWidthIncrease)
970
|| cmd.CommandID.Equals(
MenuCommands
.KeySizeWidthDecrease)
971
|| cmd.CommandID.Equals(
MenuCommands
.KeySizeHeightDecrease)
972
|| cmd.CommandID.Equals(
MenuCommands
.KeySizeHeightIncrease);
977
if (cmd.CommandID.Equals(
MenuCommands
.KeyMoveDown))
993
if (cmd.CommandID.Equals(
MenuCommands
.KeyMoveRight) || cmd.CommandID.Equals(
MenuCommands
.KeyNudgeRight) || cmd.CommandID.Equals(
MenuCommands
.KeySizeWidthIncrease))
1002
if (cmd.CommandID.Equals(
MenuCommands
.KeyMoveLeft) || cmd.CommandID.Equals(
MenuCommands
.KeyNudgeLeft) || cmd.CommandID.Equals(
MenuCommands
.KeySizeWidthDecrease))
1011
if (cmd.CommandID.Equals(
MenuCommands
.KeyMoveDown) || cmd.CommandID.Equals(
MenuCommands
.KeyNudgeDown) || cmd.CommandID.Equals(
MenuCommands
.KeySizeHeightIncrease))
1017
if (cmd.CommandID.Equals(
MenuCommands
.KeyMoveUp) || cmd.CommandID.Equals(
MenuCommands
.KeyNudgeUp) || cmd.CommandID.Equals(
MenuCommands
.KeySizeHeightDecrease))
1048
bool reverse = (cmd.CommandID.Equals(
MenuCommands
.KeyReverseCancel));
1074
bool reverse = cmd.CommandID.Equals(
MenuCommands
.KeySelectPrevious);
1467
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeySelectNext));
1468
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeySelectPrevious));
1469
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeyDefaultAction));
1471
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeyMoveUp));
1472
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeyMoveDown));
1473
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeyMoveLeft));
1474
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeyMoveRight));
1476
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeyNudgeUp));
1477
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeyNudgeDown));
1478
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeyNudgeLeft));
1479
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeyNudgeRight));
1481
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeySizeWidthIncrease));
1482
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeySizeHeightIncrease));
1483
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeySizeWidthDecrease));
1484
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeySizeHeightDecrease));
1486
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeyCancel));
1487
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeyReverseCancel));
1490
_oldCommands.Add(mcs.FindCommand(
MenuCommands
.KeyInvokeSmartTag));
1502
_newCommands.Add(new MenuCommand(new EventHandler(OnKeySelect),
MenuCommands
.KeySelectNext));
1503
_newCommands.Add(new MenuCommand(new EventHandler(OnKeySelect),
MenuCommands
.KeySelectPrevious));
1504
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyDefault),
MenuCommands
.KeyDefaultAction));
1505
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyEdit),
MenuCommands
.EditLabel));
1507
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove),
MenuCommands
.KeyMoveUp));
1508
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove),
MenuCommands
.KeyMoveDown));
1509
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove),
MenuCommands
.KeyMoveLeft));
1510
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove),
MenuCommands
.KeyMoveRight));
1512
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove),
MenuCommands
.KeyNudgeUp));
1513
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove),
MenuCommands
.KeyNudgeDown));
1514
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove),
MenuCommands
.KeyNudgeLeft));
1515
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove),
MenuCommands
.KeyNudgeRight));
1517
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove),
MenuCommands
.KeySizeWidthIncrease));
1518
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove),
MenuCommands
.KeySizeHeightIncrease));
1519
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove),
MenuCommands
.KeySizeWidthDecrease));
1520
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyMove),
MenuCommands
.KeySizeHeightDecrease));
1522
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyCancel),
MenuCommands
.KeyCancel));
1523
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyCancel),
MenuCommands
.KeyReverseCancel));
1527
_newCommands.Add(new MenuCommand(new EventHandler(OnCommandHome),
MenuCommands
.KeyHome));
1528
_newCommands.Add(new MenuCommand(new EventHandler(OnCommandEnd),
MenuCommands
.KeyEnd));
1529
_newCommands.Add(new MenuCommand(new EventHandler(OnCommandHome),
MenuCommands
.KeyShiftHome));
1530
_newCommands.Add(new MenuCommand(new EventHandler(OnCommandEnd),
MenuCommands
.KeyShiftEnd));
1533
_newCommands.Add(new MenuCommand(new EventHandler(OnKeyShowDesignerActions),
MenuCommands
.KeyInvokeSmartTag));
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (2)
444
_designerShortCutCommand = new MenuCommand(OnKeyShowDesignerActions,
MenuCommands
.KeyInvokeSmartTag);
447
_oldShortCutCommand = menuCommandService.FindCommand(
MenuCommands
.KeyInvokeSmartTag);
System.Windows.Forms.Design.Tests (37)
System\Windows\Forms\Design\MenuCommandsTests.cs (36)
21
yield return new object[] {
MenuCommands
.ComponentTrayMenu, new CommandID(new Guid("74d21312-2aee-11d1-8bfb-00a0c90f26f7"), 1286) };
22
yield return new object[] {
MenuCommands
.ContainerMenu, new CommandID(new Guid("74d21312-2aee-11d1-8bfb-00a0c90f26f7"), 1281) };
23
yield return new object[] {
MenuCommands
.DesignerProperties, new CommandID(new Guid("74d21313-2aee-11d1-8bfb-00a0c90f26f7"), 4097) };
24
yield return new object[] {
MenuCommands
.EditLabel, new CommandID(new Guid("5efc7975-14bc-11cf-9b2b-00aa00573819"), 338) };
25
yield return new object[] {
MenuCommands
.KeyCancel, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 103) };
26
yield return new object[] {
MenuCommands
.KeyDefaultAction, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 3) };
27
yield return new object[] {
MenuCommands
.KeyEnd, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 17) };
28
yield return new object[] {
MenuCommands
.KeyHome, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 15) };
29
yield return new object[] {
MenuCommands
.KeyInvokeSmartTag, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 147) };
30
yield return new object[] {
MenuCommands
.KeyMoveDown, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 13) };
31
yield return new object[] {
MenuCommands
.KeyMoveLeft, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 7) };
32
yield return new object[] {
MenuCommands
.KeyMoveRight, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 9) };
33
yield return new object[] {
MenuCommands
.KeyMoveUp, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 11) };
34
yield return new object[] {
MenuCommands
.KeyNudgeDown, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1225) };
35
yield return new object[] {
MenuCommands
.KeyNudgeHeightDecrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1229) };
36
yield return new object[] {
MenuCommands
.KeyNudgeHeightIncrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1228) };
37
yield return new object[] {
MenuCommands
.KeyNudgeLeft, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1224) };
38
yield return new object[] {
MenuCommands
.KeyNudgeRight, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1226) };
39
yield return new object[] {
MenuCommands
.KeyNudgeUp, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1227) };
40
yield return new object[] {
MenuCommands
.KeyNudgeWidthDecrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1230) };
41
yield return new object[] {
MenuCommands
.KeyNudgeWidthDecrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1230) };
42
yield return new object[] {
MenuCommands
.KeyNudgeHeightIncrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1228) };
43
yield return new object[] {
MenuCommands
.KeyReverseCancel, new CommandID(new Guid("74d21313-2aee-11d1-8bfb-00a0c90f26f7"), 16385) };
44
yield return new object[] {
MenuCommands
.KeySelectNext, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 4) };
45
yield return new object[] {
MenuCommands
.KeySelectPrevious, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 5) };
46
yield return new object[] {
MenuCommands
.KeyShiftEnd, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 18) };
47
yield return new object[] {
MenuCommands
.KeyShiftHome, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 16) };
48
yield return new object[] {
MenuCommands
.KeySizeHeightDecrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 14) };
49
yield return new object[] {
MenuCommands
.KeySizeHeightIncrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 12) };
50
yield return new object[] {
MenuCommands
.KeySizeWidthDecrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 8) };
51
yield return new object[] {
MenuCommands
.KeySizeWidthIncrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 10) };
52
yield return new object[] {
MenuCommands
.KeyTabOrderSelect, new CommandID(new Guid("74d21313-2aee-11d1-8bfb-00a0c90f26f7"), 16405) };
53
yield return new object[] {
MenuCommands
.SelectionMenu, new CommandID(new Guid("74d21312-2aee-11d1-8bfb-00a0c90f26f7"), 1280) };
54
yield return new object[] {
MenuCommands
.SetStatusRectangle, new CommandID(new Guid("74d21313-2aee-11d1-8bfb-00a0c90f26f7"), 16388) };
55
yield return new object[] {
MenuCommands
.SetStatusText, new CommandID(new Guid("74d21313-2aee-11d1-8bfb-00a0c90f26f7"), 16387) };
56
yield return new object[] {
MenuCommands
.TraySelectionMenu, new CommandID(new Guid("74d21312-2aee-11d1-8bfb-00a0c90f26f7"), 1283) };
System\Windows\Forms\Design\StatusCommandUITests.cs (1)
29
.Setup(mcs => mcs.FindCommand(
MenuCommands
.SetStatusRectangle))