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)
200public MenuCommand FindCommand(CommandID commandID) => throw new NotImplementedException();
50 references to FindCommand
DesignSurfaceExt (1)
DesignSurfaceExt.cs (1)
358MenuCommand menuCommand = ims?.FindCommand(commandId);
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
5202MenuCommand? 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); 565return 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)
185_tabOrderCommand = menuCommandService.FindCommand(StandardCommands.TabOrder); 1357MenuCommand cmd = mcs.FindCommand(StandardCommands.TabOrder);
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
1468MenuCommand tabCommand = ms.FindCommand(StandardCommands.TabOrder); 1667MenuCommand 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) 1467_oldCommands.Add(mcs.FindCommand(MenuCommands.KeySelectNext)); 1468_oldCommands.Add(mcs.FindCommand(MenuCommands.KeySelectPrevious)); 1469_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyDefaultAction)); 1471_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyMoveUp)); 1472_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyMoveDown)); 1473_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyMoveLeft)); 1474_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyMoveRight)); 1476_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyNudgeUp)); 1477_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyNudgeDown)); 1478_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyNudgeLeft)); 1479_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyNudgeRight)); 1481_oldCommands.Add(mcs.FindCommand(MenuCommands.KeySizeWidthIncrease)); 1482_oldCommands.Add(mcs.FindCommand(MenuCommands.KeySizeHeightIncrease)); 1483_oldCommands.Add(mcs.FindCommand(MenuCommands.KeySizeWidthDecrease)); 1484_oldCommands.Add(mcs.FindCommand(MenuCommands.KeySizeHeightDecrease)); 1486_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyCancel)); 1487_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyReverseCancel)); 1488_oldCommands.Add(mcs.FindCommand(StandardCommands.Copy)); 1489_oldCommands.Add(mcs.FindCommand(StandardCommands.SelectAll)); 1490_oldCommands.Add(mcs.FindCommand(MenuCommands.KeyInvokeSmartTag)); 1492_oldCommands.Add(mcs.FindCommand(StandardCommands.Cut)); 1493_oldCommands.Add(mcs.FindCommand(StandardCommands.Delete)); 1559if (oldCommand is not null && mcs.FindCommand(oldCommand.CommandID) is null) 1572if (_oldCommandPaste is not null && mcs.FindCommand(_oldCommandPaste.CommandID) is null)
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
447_oldShortCutCommand = menuCommandService.FindCommand(MenuCommands.KeyInvokeSmartTag);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
174_oldUndoCommand = menuService.FindCommand(StandardCommands.Undo); 180_oldRedoCommand = menuService.FindCommand(StandardCommands.Redo);
System.Windows.Forms.Design.Tests (4)
System\Windows\Forms\Design\StandardCommandToolStripMenuItemTests.cs (3)
27_menuCommandServiceMock.Setup(mcs => mcs.FindCommand(_commandID)) 38_item.MenuService?.FindCommand(_commandID)?.CommandID.Should().Be(_commandID); 86_menuCommandServiceMock.Setup(mcs => mcs.FindCommand(_commandID))
System\Windows\Forms\Design\StatusCommandUITests.cs (1)
29.Setup(mcs => mcs.FindCommand(MenuCommands.SetStatusRectangle))