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)
363MenuCommand menuCommand = ims?.FindCommand(commandId);
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
5197MenuCommand? 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)
2168MenuCommand? 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) 550_oldCommandPaste = mcs.FindCommand(StandardCommands.Paste); 557if (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)); 1568if (oldCommand is not null && mcs.FindCommand(oldCommand.CommandID) is null) 1581if (_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);