1 implementation of GetComponentSelected
System.Windows.Forms.Design (1)
System\ComponentModel\Design\SelectionService.cs (1)
330
bool ISelectionService.
GetComponentSelected
(object component)
43 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)
973
if (GetOcState() >= OC_UIACTIVE && !selectionService.
GetComponentSelected
(this))
979
if (!selectionService.
GetComponentSelected
(this))
2389
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))
1046
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)
284
if (_selectionService.
GetComponentSelected
(ce.Component!))
System\Windows\Forms\Design\CommandSet.cs (2)
2902
if (baseComponent is not null && SelectionService.
GetComponentSelected
(baseComponent))
2996
if (!selSvc.
GetComponentSelected
(baseComp))
System\Windows\Forms\Design\ComponentTray.cs (2)
2229
if (s is not null && !s.
GetComponentSelected
(_component))
2571
if (s.
GetComponentSelected
(Component))
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
48
if (s.
GetComponentSelected
(_control))
System\Windows\Forms\Design\ControlDesigner.cs (2)
715
if (TryGetService(out ISelectionService? sel) && sel.
GetComponentSelected
(Control))
1350
|| (selectionService is not null && !selectionService.
GetComponentSelected
(Component))))
System\Windows\Forms\Design\DocumentDesigner.cs (1)
936
if (selSvc.SelectionCount == 1 && selSvc.
GetComponentSelected
(Component))
System\Windows\Forms\Design\SelectionUIService.cs (2)
923
if (_selSvc is not null && _selSvc.
GetComponentSelected
(component))
1289
if (_selSvc is not null && _selSvc.
GetComponentSelected
(component))
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
1481
if (selSvc.
GetComponentSelected
(Table) || selectedComponentHasTableParent)
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (1)
246
if (!_selectionService.
GetComponentSelected
(_toolStripContainer!))
System\Windows\Forms\Design\ToolStripDesigner.cs (9)
419
if (ToolStrip.Visible != value && !SelectionService.
GetComponentSelected
(ToolStrip))
1991
if (!SelectionService.
GetComponentSelected
(ToolStrip))
2069
&& SelectionService.
GetComponentSelected
(item)
2171
if (CheckIfItemSelected() || SelectionService.
GetComponentSelected
(ToolStrip))
2183
if (SelectionService.
GetComponentSelected
(ToolStrip))
2317
if (!showToolStrip && !SelectionService.
GetComponentSelected
(ToolStrip))
2348
bool showToolStrip = itemSelected || SelectionService.
GetComponentSelected
(ToolStrip);
2354
if (SelectionService.
GetComponentSelected
(ToolStrip))
2494
if (!_addingDummyItem && !_disposed && (CheckIfItemSelected() || SelectionService.
GetComponentSelected
(ToolStrip)))
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
507
if (selectionService.
GetComponentSelected
(_menuItem))
System\Windows\Forms\Design\ToolStripItemBehavior.cs (5)
383
if (!selSvc.
GetComponentSelected
(glyphItem))
456
if (!selSvc.
GetComponentSelected
(glyphItem))
483
if (!selSvc.
GetComponentSelected
(glyphItem))
509
if (!selSvc.
GetComponentSelected
(glyphItem))
535
if (!selSvc.
GetComponentSelected
(glyphItem))
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
925
if (sSvc.
GetComponentSelected
(ToolStripItem))
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (4)
1401
if (_shiftPressed && SelectionService.
GetComponentSelected
(targetSelection))
1444
if (_shiftPressed && SelectionService.
GetComponentSelected
(targetSelection))
1897
if (_shiftPressed && SelectionService.
GetComponentSelected
(targetSelection))
1925
if (_shiftPressed && SelectionService.
GetComponentSelected
(targetSelection))
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (3)
1040
if (item.Visible && _selectionService.
GetComponentSelected
(item))
2035
if (MenuItem is not null && _selectionService.
GetComponentSelected
(MenuItem))
2046
if (_selectionService.
GetComponentSelected
(MenuItem) && !_dropDownSetFailed)