3 implementations of FindCommand
System.Windows.Forms.Design (2)
System\ComponentModel\Design\MenuCommandService.cs (1)
315public MenuCommand? FindCommand(CommandID commandID)
System\Windows\Forms\Design\Behavior\BehaviorService.MenuCommandHandler.cs (1)
29MenuCommand? IMenuCommandService.FindCommand(CommandID commandID)
System.Windows.Forms.Tests (1)
System\Windows\Forms\AccessibleObjects\PropertyGrid.PropertyGridAccessibleObjectTests.cs (1)
199public MenuCommand FindCommand(CommandID commandID) => throw new NotImplementedException();
46 references to FindCommand
DesignSurfaceExt (1)
DesignSurfaceExt.cs (1)
375MenuCommand menuCommand = ims?.FindCommand(commandId);
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
5206MenuCommand? reset = menuCommandService.FindCommand(PropertyGridCommands.Reset);
System.Windows.Forms.Design (44)
System\ComponentModel\Design\MenuCommandService.cs (3)
82if (((IMenuCommandService)this).FindCommand(commandId) is not null) 413MenuCommand? cmd = ((IMenuCommandService)this).FindCommand(commandID); 432MenuCommand? cmd = ((IMenuCommandService)this).FindCommand(commandId);
System\Windows\Forms\Design\Behavior\BehaviorService.cs (2)
547MenuCommand? menuCommand = menuService.FindCommand(commandID); 568return menuService.FindCommand(commandID);
System\Windows\Forms\Design\CommandSet.cs (1)
2166MenuCommand? 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); 1384MenuCommand cmd = mcs.FindCommand(StandardCommands.TabOrder);
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
1468MenuCommand tabCommand = ms.FindCommand(StandardCommands.TabOrder); 1666MenuCommand tabCommand = ms.FindCommand(StandardCommands.TabOrder);
System\Windows\Forms\Design\StandardCommandToolStripMenuItem.cs (1)
35_menuCommand = MenuService?.FindCommand(menuID);
System\Windows\Forms\Design\StatusCommandUI.cs (1)
33private MenuCommand? StatusRectCommand => _statusRectCommand ??= MenuService?.FindCommand(MenuCommands.SetStatusRectangle);
System\Windows\Forms\Design\TabOrder.cs (1)
511MenuCommand? mc = mcs.FindCommand(StandardCommands.TabOrder);
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (27)
288if (newCommand is not null && mcs.FindCommand(newCommand.CommandID) is null) 565_oldCommandPaste = mcs.FindCommand(StandardCommands.Paste); 572if (_newCommandPaste is not null && mcs.FindCommand(_newCommandPaste.CommandID) is null) 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)); 1514_oldCommands.Add(mcs.FindCommand(StandardCommands.Copy)); 1515_oldCommands.Add(mcs.FindCommand(StandardCommands.SelectAll)); 1516_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyInvokeSmartTag)); 1518_oldCommands.Add(mcs.FindCommand(StandardCommands.Cut)); 1519_oldCommands.Add(mcs.FindCommand(StandardCommands.Delete)); 1585if (oldCommand is not null && mcs.FindCommand(oldCommand.CommandID) is null) 1598if (_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);