1 type derived from StandardCommands
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\MenuCommands.cs (1)
11
public sealed class MenuCommands :
StandardCommands
141 references to StandardCommands
DesignSurfaceExt (4)
DesignSurfaceExt.cs (4)
353
"CUT" =>
StandardCommands
.Cut,
354
"COPY" =>
StandardCommands
.Copy,
355
"PASTE" =>
StandardCommands
.Paste,
356
"DELETE" =>
StandardCommands
.Delete,
netstandard (1)
netstandard.cs (1)
297
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.
StandardCommands
))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
283
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.
StandardCommands
))]
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\DesignerVerb.cs (1)
17
public DesignerVerb(string text, EventHandler handler) : this(text, handler,
StandardCommands
.VerbFirst) { }
System.Windows.Forms.Design (134)
System\ComponentModel\Design\DesignerActionPanel.cs (8)
132
StandardCommands
.Copy,
133
StandardCommands
.Cut,
134
StandardCommands
.Delete,
135
StandardCommands
.F1Help,
136
StandardCommands
.Paste,
137
StandardCommands
.Redo,
138
StandardCommands
.SelectAll,
139
StandardCommands
.Undo,
System\ComponentModel\Design\MenuCommandService.cs (2)
348
int currentID =
StandardCommands
.VerbFirst.ID;
368
if (cid.Equals(
StandardCommands
.VerbFirst))
System\Windows\Forms\Design\BaseContextMenuStrip.cs (10)
33
StandardCommandToolStripMenuItem codeMenuItem = new(
StandardCommands
.ViewCode, SR.ContextMenuViewCode, "viewcode", _serviceProvider);
42
StandardCommandToolStripMenuItem ZOrderMenuItem = new(
StandardCommands
.BringToFront, SR.ContextMenuBringToFront, "bringToFront", _serviceProvider);
44
ZOrderMenuItem = new StandardCommandToolStripMenuItem(
StandardCommands
.SendToBack, SR.ContextMenuSendToBack, "sendToBack", _serviceProvider);
53
StandardCommandToolStripMenuItem gridMenuItem = new(
StandardCommands
.AlignToGrid, SR.ContextMenuAlignToGrid, "alignToGrid", _serviceProvider);
62
StandardCommandToolStripMenuItem lockMenuItem = new(
StandardCommands
.LockControls, SR.ContextMenuLockControls, "lockControls", _serviceProvider);
172
StandardCommandToolStripMenuItem stdMenuItem = new(
StandardCommands
.Cut, SR.ContextMenuCut, "cut", _serviceProvider);
174
stdMenuItem = new StandardCommandToolStripMenuItem(
StandardCommands
.Copy, SR.ContextMenuCopy, "copy", _serviceProvider);
176
stdMenuItem = new StandardCommandToolStripMenuItem(
StandardCommands
.Paste, SR.ContextMenuPaste, "paste", _serviceProvider);
178
stdMenuItem = new StandardCommandToolStripMenuItem(
StandardCommands
.Delete, SR.ContextMenuDelete, "delete", _serviceProvider);
187
StandardCommandToolStripMenuItem stdMenuItem = new(
StandardCommands
.DocumentOutline, SR.ContextMenuDocumentOutline, "", _serviceProvider);
System\Windows\Forms\Design\CommandSet.cs (45)
83
StandardCommands
.Delete,
90
StandardCommands
.Copy,
97
StandardCommands
.Cut,
104
StandardCommands
.Paste,
112
StandardCommands
.SelectAll, true,
1026
if (id.Equals(
StandardCommands
.AlignBottom)
1027
|| id.Equals(
StandardCommands
.AlignHorizontalCenters)
1028
|| id.Equals(
StandardCommands
.AlignVerticalCenters)
1029
|| id.Equals(
StandardCommands
.AlignRight))
1040
if (id.Equals(
StandardCommands
.AlignBottom))
1048
else if (id.Equals(
StandardCommands
.AlignHorizontalCenters))
1056
else if (id.Equals(
StandardCommands
.AlignRight))
1064
else if (id.Equals(
StandardCommands
.AlignVerticalCenters))
1073
else if (id.Equals(
StandardCommands
.AlignLeft))
1081
else if (id.Equals(
StandardCommands
.AlignTop))
1261
string batchString = cmdID ==
StandardCommands
.CenterHorizontally
1347
if (cmdID ==
StandardCommands
.CenterHorizontally)
1354
else if (cmdID ==
StandardCommands
.CenterVertically)
2168
MenuCommand? btf = MenuService?.FindCommand(
StandardCommands
.BringToFront);
2345
if (cmdID ==
StandardCommands
.SizeToControlHeight ||
2346
cmdID ==
StandardCommands
.SizeToControl)
2351
if (cmdID ==
StandardCommands
.SizeToControlWidth ||
2352
cmdID ==
StandardCommands
.SizeToControl)
2463
if (menuSvc.GlobalInvoke(
StandardCommands
.PropertiesWindow))
2565
if (cmdID ==
StandardCommands
.HorizSpaceConcatenate ||
2566
cmdID ==
StandardCommands
.HorizSpaceDecrease ||
2567
cmdID ==
StandardCommands
.HorizSpaceIncrease ||
2568
cmdID ==
StandardCommands
.HorizSpaceMakeEqual)
2574
sort = cmdID ==
StandardCommands
.VertSpaceConcatenate ||
2575
cmdID ==
StandardCommands
.VertSpaceDecrease ||
2576
cmdID ==
StandardCommands
.VertSpaceIncrease ||
2577
cmdID ==
StandardCommands
.VertSpaceMakeEqual
2592
if (cmdID ==
StandardCommands
.HorizSpaceMakeEqual ||
2593
cmdID ==
StandardCommands
.VertSpaceMakeEqual)
2797
if (cmdID ==
StandardCommands
.HorizSpaceConcatenate && n > 0)
2801
else if (cmdID ==
StandardCommands
.HorizSpaceDecrease)
2816
else if (cmdID ==
StandardCommands
.HorizSpaceIncrease)
2827
else if (cmdID ==
StandardCommands
.HorizSpaceMakeEqual && n > 0)
2831
else if (cmdID ==
StandardCommands
.VertSpaceConcatenate && n > 0)
2835
else if (cmdID ==
StandardCommands
.VertSpaceDecrease)
2850
else if (cmdID ==
StandardCommands
.VertSpaceIncrease)
2861
else if (cmdID ==
StandardCommands
.VertSpaceMakeEqual && n > 0)
3223
if (curItem.CommandID ==
StandardCommands
.Paste ||
3224
curItem.CommandID ==
StandardCommands
.Copy ||
3225
curItem.CommandID ==
StandardCommands
.Cut)
System\Windows\Forms\Design\ComponentTray.cs (4)
105
_menucmdArrangeIcons = new MenuCommand(OnMenuArrangeIcons,
StandardCommands
.ArrangeIcons);
106
_menucmdLineupIcons = new MenuCommand(OnMenuLineupIcons,
StandardCommands
.LineupIcons);
107
_menucmdLargeIcons = new MenuCommand(OnMenuShowLargeIcons,
StandardCommands
.ShowLargeIcons);
1665
_tabOrderCommand = mcs.FindCommand(
StandardCommands
.TabOrder);
System\Windows\Forms\Design\ControlCommandSet.cs (30)
43
StandardCommands
.AlignLeft, true),
49
StandardCommands
.AlignTop, true),
55
StandardCommands
.AlignToGrid, true),
61
StandardCommands
.AlignBottom, true),
67
StandardCommands
.AlignHorizontalCenters, true),
73
StandardCommands
.AlignRight, true),
79
StandardCommands
.AlignVerticalCenters, true),
86
StandardCommands
.CenterHorizontally, true),
92
StandardCommands
.CenterVertically, true),
99
StandardCommands
.HorizSpaceConcatenate, true),
105
StandardCommands
.HorizSpaceDecrease, true),
111
StandardCommands
.HorizSpaceIncrease, true),
117
StandardCommands
.HorizSpaceMakeEqual, true),
123
StandardCommands
.VertSpaceConcatenate, true),
129
StandardCommands
.VertSpaceDecrease, true),
135
StandardCommands
.VertSpaceIncrease, true),
141
StandardCommands
.VertSpaceMakeEqual, true),
148
StandardCommands
.SizeToControl, true),
154
StandardCommands
.SizeToControlWidth, true),
160
StandardCommands
.SizeToControlHeight, true),
166
StandardCommands
.SizeToGrid, true),
173
StandardCommands
.BringToFront, true),
179
StandardCommands
.SendToBack, true),
186
StandardCommands
.ShowGrid, true),
192
StandardCommands
.SnapToGrid, true),
198
StandardCommands
.TabOrder, true),
204
StandardCommands
.LockControls, true),
996
if (cmdID ==
StandardCommands
.BringToFront)
1087
if (cmdID ==
StandardCommands
.BringToFront)
1094
else if (cmdID ==
StandardCommands
.SendToBack)
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (12)
299
if ((commandId.ID ==
StandardCommands
.Copy.ID) && (commandId.Guid ==
StandardCommands
.Copy.Guid))
301
command = new MenuCommand(handler,
StandardCommands
.Copy)
309
if ((commandId.ID ==
StandardCommands
.Paste.ID) && (commandId.Guid ==
StandardCommands
.Paste.Guid))
311
command = new MenuCommand(handler,
StandardCommands
.Paste)
319
if ((commandId.ID ==
StandardCommands
.Delete.ID) && (commandId.Guid ==
StandardCommands
.Delete.Guid))
321
command = new MenuCommand(handler,
StandardCommands
.Delete)
329
if ((commandId.ID ==
StandardCommands
.Cut.ID) && (commandId.Guid ==
StandardCommands
.Cut.Guid))
331
command = new MenuCommand(handler,
StandardCommands
.Cut)
System\Windows\Forms\Design\DocumentDesigner.cs (2)
188
_tabOrderCommand = menuCommandService.FindCommand(
StandardCommands
.TabOrder);
1384
MenuCommand cmd = mcs.FindCommand(
StandardCommands
.TabOrder);
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
1468
MenuCommand tabCommand = ms.FindCommand(
StandardCommands
.TabOrder);
1666
MenuCommand tabCommand = ms.FindCommand(
StandardCommands
.TabOrder);
System\Windows\Forms\Design\PbrsForward.cs (1)
149
MenuCommandService.GlobalInvoke(
StandardCommands
.PropertiesWindow);
System\Windows\Forms\Design\TabOrder.cs (2)
511
MenuCommand? mc = mcs.FindCommand(
StandardCommands
.TabOrder);
712
if (!Equals(cmd.CommandID,
StandardCommands
.TabOrder))
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (11)
522
if (sender is MenuCommand com && com.CommandID ==
StandardCommands
.Cut)
550
_oldCommandPaste = mcs.FindCommand(
StandardCommands
.Paste);
556
_newCommandPaste = new MenuCommand(new EventHandler(OnCommandPaste),
StandardCommands
.Paste);
1497
_oldCommands.Add(mcs.FindCommand(
StandardCommands
.Copy));
1498
_oldCommands.Add(mcs.FindCommand(
StandardCommands
.SelectAll));
1501
_oldCommands.Add(mcs.FindCommand(
StandardCommands
.Cut));
1502
_oldCommands.Add(mcs.FindCommand(
StandardCommands
.Delete));
1533
_newCommands.Add(new MenuCommand(new EventHandler(OnCommandCopy),
StandardCommands
.Copy));
1534
_newCommands.Add(new MenuCommand(new EventHandler(OnCommandSelectAll),
StandardCommands
.SelectAll));
1544
_newCommands.Add(new MenuCommand(new EventHandler(OnCommandCopy),
StandardCommands
.Cut));
1545
_newCommands.Add(new MenuCommand(new EventHandler(OnCommandDelete),
StandardCommands
.Delete));
System\Windows\Forms\Design\ToolStripTemplateNode.cs (5)
180
_oldUndoCommand = menuService.FindCommand(
StandardCommands
.Undo);
186
_oldRedoCommand = menuService.FindCommand(
StandardCommands
.Redo);
1244
if (cmd.CommandID ==
StandardCommands
.Delete || cmd.CommandID ==
StandardCommands
.Cut || cmd.CommandID ==
StandardCommands
.Copy)