3 implementations of FindCommand
System.Windows.Forms.Design (2)
System\ComponentModel\Design\MenuCommandService.cs (1)
315
public MenuCommand?
FindCommand
(CommandID commandID)
System\Windows\Forms\Design\Behavior\BehaviorService.MenuCommandHandler.cs (1)
29
MenuCommand? IMenuCommandService.
FindCommand
(CommandID commandID)
System.Windows.Forms.Tests (1)
System\Windows\Forms\AccessibleObjects\PropertyGrid.PropertyGridAccessibleObjectTests.cs (1)
199
public MenuCommand
FindCommand
(CommandID commandID) => throw new NotImplementedException();
46 references to FindCommand
DesignSurfaceExt (1)
DesignSurfaceExt.cs (1)
363
MenuCommand menuCommand = ims?.
FindCommand
(commandId);
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
5197
MenuCommand? reset = menuCommandService.
FindCommand
(PropertyGridCommands.Reset);
System.Windows.Forms.Design (44)
System\ComponentModel\Design\MenuCommandService.cs (3)
82
if (((IMenuCommandService)this).
FindCommand
(commandId) is not null)
413
MenuCommand? cmd = ((IMenuCommandService)this).
FindCommand
(commandID);
432
MenuCommand? cmd = ((IMenuCommandService)this).
FindCommand
(commandId);
System\Windows\Forms\Design\Behavior\BehaviorService.cs (2)
547
MenuCommand? menuCommand = menuService.
FindCommand
(commandID);
568
return menuService.
FindCommand
(commandID);
System\Windows\Forms\Design\CommandSet.cs (1)
2168
MenuCommand? btf = MenuService?.
FindCommand
(StandardCommands.BringToFront);
System\Windows\Forms\Design\ComponentTray.cs (1)
1665
_tabOrderCommand = mcs.
FindCommand
(StandardCommands.TabOrder);
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\StandardCommandToolStripMenuItem.cs (1)
35
_menuCommand = MenuService?.
FindCommand
(menuID);
System\Windows\Forms\Design\StatusCommandUI.cs (1)
33
private MenuCommand? StatusRectCommand => _statusRectCommand ??= MenuService?.
FindCommand
(MenuCommands.SetStatusRectangle);
System\Windows\Forms\Design\TabOrder.cs (1)
511
MenuCommand? mc = mcs.
FindCommand
(StandardCommands.TabOrder);
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (27)
288
if (newCommand is not null && mcs.
FindCommand
(newCommand.CommandID) is null)
550
_oldCommandPaste = mcs.
FindCommand
(StandardCommands.Paste);
557
if (mcs.
FindCommand
(_newCommandPaste.CommandID) is null)
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));
1497
_oldCommands.Add(mcs.
FindCommand
(StandardCommands.Copy));
1498
_oldCommands.Add(mcs.
FindCommand
(StandardCommands.SelectAll));
1499
_oldCommands.Add(mcs.
FindCommand
(MenuCommands.KeyInvokeSmartTag));
1501
_oldCommands.Add(mcs.
FindCommand
(StandardCommands.Cut));
1502
_oldCommands.Add(mcs.
FindCommand
(StandardCommands.Delete));
1568
if (oldCommand is not null && mcs.
FindCommand
(oldCommand.CommandID) is null)
1581
if (_oldCommandPaste is not null && mcs.
FindCommand
(_oldCommandPaste.CommandID) is null)
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
453
_oldShortCutCommand = menuCommandService.
FindCommand
(MenuCommands.KeyInvokeSmartTag);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
180
_oldUndoCommand = menuService.
FindCommand
(StandardCommands.Undo);
186
_oldRedoCommand = menuService.
FindCommand
(StandardCommands.Redo);