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