1 implementation of GetComponentSelected
System.Windows.Forms.Design (1)
System\ComponentModel\Design\SelectionService.cs (1)
330bool ISelectionService.GetComponentSelected(object component)
56 references to GetComponentSelected
System.Windows.Forms (6)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (1)
297|| !selectionService.GetComponentSelected(this))
System\Windows\Forms\ActiveX\AxHost.cs (3)
976if (GetOcState() >= OC_UIACTIVE && !selectionService.GetComponentSelected(this)) 982if (!selectionService.GetComponentSelected(this)) 2392if (Site.TryGetService(out ISelectionService? selectionService) && selectionService.GetComponentSelected(this))
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (2)
731if (iss is not null && iss.GetComponentSelected(this)) 1052if (!iss.GetComponentSelected(this))
System.Windows.Forms.Design (37)
System\ComponentModel\Design\DesignerEventService.cs (1)
106if (comp.Site.TryGetService(out ISelectionService? ss) && ss.GetComponentSelected(comp))
System\Windows\Forms\Design\Behavior\SelectionManager.cs (1)
287if (_selectionService.GetComponentSelected(ce.Component!))
System\Windows\Forms\Design\CommandSet.cs (2)
2907if (baseComponent is not null && SelectionService.GetComponentSelected(baseComponent)) 3001if (!selSvc.GetComponentSelected(baseComp))
System\Windows\Forms\Design\ComponentTray.cs (2)
2247if (s is not null && !s.GetComponentSelected(_component)) 2589if (s.GetComponentSelected(Component))
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
48if (s.GetComponentSelected(_control))
System\Windows\Forms\Design\ControlDesigner.cs (2)
700if (TryGetService(out ISelectionService? sel) && sel.GetComponentSelected(Control)) 1335|| (selectionService is not null && !selectionService.GetComponentSelected(Component))))
System\Windows\Forms\Design\DocumentDesigner.cs (1)
978if (selSvc.SelectionCount == 1 && selSvc.GetComponentSelected(Component))
System\Windows\Forms\Design\SelectionUIService.cs (2)
929if (_selSvc is not null && _selSvc.GetComponentSelected(component)) 1301if (_selSvc is not null && _selSvc.GetComponentSelected(component))
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
1487if (selSvc.GetComponentSelected(Table) || selectedComponentHasTableParent)
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (1)
246if (!_selectionService.GetComponentSelected(_toolStripContainer!))
System\Windows\Forms\Design\ToolStripDesigner.cs (9)
450if (ToolStrip.Visible != value && !SelectionService.GetComponentSelected(ToolStrip)) 1976if (!SelectionService.GetComponentSelected(ToolStrip)) 2053&& SelectionService.GetComponentSelected(item) 2155if (CheckIfItemSelected() || SelectionService.GetComponentSelected(ToolStrip)) 2167if (SelectionService.GetComponentSelected(ToolStrip)) 2306if (!showToolStrip && !SelectionService.GetComponentSelected(ToolStrip)) 2340bool showToolStrip = itemSelected || SelectionService.GetComponentSelected(ToolStrip); 2346if (SelectionService.GetComponentSelected(ToolStrip)) 2495if (!_addingDummyItem && !_disposed && (CheckIfItemSelected() || SelectionService.GetComponentSelected(ToolStrip)))
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
516if (selectionService.GetComponentSelected(_menuItem))
System\Windows\Forms\Design\ToolStripItemBehavior.cs (5)
383if (!selSvc.GetComponentSelected(glyphItem)) 459if (!selSvc.GetComponentSelected(glyphItem)) 486if (!selSvc.GetComponentSelected(glyphItem)) 512if (!selSvc.GetComponentSelected(glyphItem)) 538if (!selSvc.GetComponentSelected(glyphItem))
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
949if (sSvc.GetComponentSelected(ToolStripItem))
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (4)
1413if (_shiftPressed && SelectionService.GetComponentSelected(targetSelection)) 1456if (_shiftPressed && SelectionService.GetComponentSelected(targetSelection)) 1918if (_shiftPressed && SelectionService.GetComponentSelected(targetSelection)) 1946if (_shiftPressed && SelectionService.GetComponentSelected(targetSelection))
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (3)
1070if (item.Visible && _selectionService.GetComponentSelected(item)) 2077if (MenuItem is not null && _selectionService.GetComponentSelected(MenuItem)) 2088if (_selectionService.GetComponentSelected(MenuItem) && !_dropDownSetFailed)
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\ControlDesignerAccessibleObjectTests.cs (1)
108s.GetComponentSelected(control) == isSelected &&
System.Windows.Forms.Tests (12)
System\Windows\Forms\AxHostTests.cs (12)
1877.Setup(s => s.GetComponentSelected(control)) 1916mockSelectionService.Verify(s => s.GetComponentSelected(control), Times.Once()); 1922mockSelectionService.Verify(s => s.GetComponentSelected(control), Times.Once()); 1932.Setup(s => s.GetComponentSelected(control)) 1972mockSelectionService.Verify(s => s.GetComponentSelected(control), Times.Once()); 1979mockSelectionService.Verify(s => s.GetComponentSelected(control), Times.Once()); 1989.Setup(s => s.GetComponentSelected(control)) 2030mockSelectionService.Verify(s => s.GetComponentSelected(control), Times.Once()); 2037mockSelectionService.Verify(s => s.GetComponentSelected(control), Times.Once()); 2190.Setup(s => s.GetComponentSelected(control)) 2241mockSelectionService.Verify(s => s.GetComponentSelected(control), Times.Exactly(2)); 2251mockSelectionService.Verify(s => s.GetComponentSelected(control), Times.Exactly(2));