1 instantiation of MenuCommands
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\MenuCommandsTests.cs (1)
16
new
MenuCommands
();
193 references to MenuCommands
DemoConsole (7)
DesignSurfaceExtended.cs (7)
352
"INVOKESMARTTAG" =>
MenuCommands
.KeyInvokeSmartTag,
353
"KEYMOVEUP" =>
MenuCommands
.KeyMoveUp,
354
"KEYMOVEDOWN" =>
MenuCommands
.KeyMoveDown,
355
"KEYMOVELEFT" =>
MenuCommands
.KeyMoveLeft,
356
"KEYMOVERIGHT" =>
MenuCommands
.KeyMoveRight,
357
"KEYSELECTNEXT" =>
MenuCommands
.KeySelectNext,
358
"KEYSELECTPREVIOUS" =>
MenuCommands
.KeySelectPrevious,
System.Design (1)
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)
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,
736
if (Equals(cmd,
MenuCommands
.KeyMoveUp))
740
else if (Equals(cmd,
MenuCommands
.KeyMoveDown))
744
else if (Equals(cmd,
MenuCommands
.KeyMoveLeft))
748
else if (Equals(cmd,
MenuCommands
.KeyMoveRight))
752
else if (Equals(cmd,
MenuCommands
.KeyNudgeUp))
757
else if (Equals(cmd,
MenuCommands
.KeyNudgeDown))
762
else if (Equals(cmd,
MenuCommands
.KeyNudgeLeft))
767
else if (Equals(cmd,
MenuCommands
.KeyNudgeRight))
System\Windows\Forms\Design\ComponentTray.cs (3)
654
mcs.ShowContextMenu(
MenuCommands
.TraySelectionMenu, location.X, location.Y);
658
mcs.ShowContextMenu(
MenuCommands
.ComponentTrayMenu, location.X, location.Y);
2239
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),
447
bool reverse = (cmd.CommandID.Equals(
MenuCommands
.KeyReverseCancel));
545
if (cmd.Equals(
MenuCommands
.KeySizeHeightDecrease))
550
else if (cmd.Equals(
MenuCommands
.KeySizeHeightIncrease))
555
else if (cmd.Equals(
MenuCommands
.KeySizeWidthDecrease))
560
else if (cmd.Equals(
MenuCommands
.KeySizeWidthIncrease))
565
else if (cmd.Equals(
MenuCommands
.KeyNudgeHeightDecrease))
571
else if (cmd.Equals(
MenuCommands
.KeyNudgeHeightIncrease))
577
else if (cmd.Equals(
MenuCommands
.KeyNudgeWidthDecrease))
583
else if (cmd.Equals(
MenuCommands
.KeyNudgeWidthIncrease))
825
bool reverse = (cmd.CommandID.Equals(
MenuCommands
.KeySelectPrevious));
System\Windows\Forms\Design\DocumentDesigner.cs (2)
938
mcs.ShowContextMenu(
MenuCommands
.ContainerMenu, x, y);
959
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)
915
if (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);
974
if (cmd.CommandID.Equals(
MenuCommands
.KeyMoveDown))
990
if (cmd.CommandID.Equals(
MenuCommands
.KeyMoveRight) || cmd.CommandID.Equals(
MenuCommands
.KeyNudgeRight) || cmd.CommandID.Equals(
MenuCommands
.KeySizeWidthIncrease))
999
if (cmd.CommandID.Equals(
MenuCommands
.KeyMoveLeft) || cmd.CommandID.Equals(
MenuCommands
.KeyNudgeLeft) || cmd.CommandID.Equals(
MenuCommands
.KeySizeWidthDecrease))
1008
if (cmd.CommandID.Equals(
MenuCommands
.KeyMoveDown) || cmd.CommandID.Equals(
MenuCommands
.KeyNudgeDown) || cmd.CommandID.Equals(
MenuCommands
.KeySizeHeightIncrease))
1014
if (cmd.CommandID.Equals(
MenuCommands
.KeyMoveUp) || cmd.CommandID.Equals(
MenuCommands
.KeyNudgeUp) || cmd.CommandID.Equals(
MenuCommands
.KeySizeHeightDecrease))
1045
bool reverse = (cmd.CommandID.Equals(
MenuCommands
.KeyReverseCancel));
1071
bool 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);
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))