1 implementation of SetSelectedComponents
System.Windows.Forms.Design (1)
System\ComponentModel\Design\SelectionService.cs (1)
357
void ISelectionService.
SetSelectedComponents
(ICollection? components, SelectionTypes selectionType)
101 references to SetSelectedComponents
System.Windows.Forms.Design (101)
System\ComponentModel\Design\DesignerHost.cs (2)
706
selectionService?.
SetSelectedComponents
(null, SelectionTypes.Replace);
1147
ss.
SetSelectedComponents
(selectedComponents, SelectionTypes.Replace);
System\ComponentModel\Design\SelectionService.cs (1)
351
=> ((ISelectionService)this).
SetSelectedComponents
(components, SelectionTypes.Auto);
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (1)
482
ss.
SetSelectedComponents
(list, SelectionTypes.Replace);
System\Windows\Forms\Design\BaseContextMenuStrip.cs (1)
323
selectionService.
SetSelectedComponents
(new object[] { _comp }, SelectionTypes.Replace);
System\Windows\Forms\Design\Behavior\ContainerSelectorBehavior.cs (1)
98
selSvc.
SetSelectedComponents
(new object[] { _containerControl }, SelectionTypes.Primary | SelectionTypes.Toggle);
System\Windows\Forms\Design\Behavior\DesignerActionBehavior.cs (1)
126
selectionService.
SetSelectedComponents
(componentList, SelectionTypes.Primary);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (2)
482
selSvc?.
SetSelectedComponents
(new object[] { _dragComponents[_primaryComponentIndex].dragComponent }, SelectionTypes.Primary | SelectionTypes.Replace);
497
selSvc?.
SetSelectedComponents
(new object[] { _dragComponents[i].dragComponent }, SelectionTypes.Add);
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (1)
96
selSvc?.
SetSelectedComponents
(new object[] { _designer.Component }, SelectionTypes.Primary);
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (3)
66
selection?.
SetSelectedComponents
(new object[] { _relatedControl }, SelectionTypes.Replace);
108
selectionService?.
SetSelectedComponents
(new object[] { _relatedControl.Parent }, SelectionTypes.Replace);
184
selectionService.
SetSelectedComponents
(
System\Windows\Forms\Design\CommandSet.cs (9)
1478
SelectionService.
SetSelectedComponents
(Array.Empty<object>(), SelectionTypes.Replace);
1558
SelectionService.
SetSelectedComponents
(new object[] { commonParent }, SelectionTypes.Replace);
1562
SelectionService.
SetSelectedComponents
(new object[] { host.RootComponent }, SelectionTypes.Replace);
1606
SelectionService.
SetSelectedComponents
(Array.Empty<object>(), SelectionTypes.Replace);
1803
SelectionService.
SetSelectedComponents
(new object[] { commonParent }, SelectionTypes.Replace);
1807
SelectionService.
SetSelectedComponents
(new object[] { host.RootComponent }, SelectionTypes.Replace);
1814
SelectionService.
SetSelectedComponents
(new object[] { host.RootComponent }, SelectionTypes.Replace);
2162
SelectionService?.
SetSelectedComponents
(selectComps.ToArray(), SelectionTypes.Replace);
2228
SelectionService.
SetSelectedComponents
(selComps, SelectionTypes.Replace);
System\Windows\Forms\Design\ComponentTray.cs (4)
2123
sel?.
SetSelectedComponents
(new object[] { Component }, SelectionTypes.Primary);
2170
sel?.
SetSelectedComponents
(new object[] { Component }, SelectionTypes.Primary);
2213
sel?.
SetSelectedComponents
(new object[] { Component }, SelectionTypes.Primary);
2249
s.
SetSelectedComponents
(new object[] { _component }, SelectionTypes.Replace);
System\Windows\Forms\Design\ControlCommandSet.cs (3)
948
selSvc.
SetSelectedComponents
(new object[] { baseComp }, SelectionTypes.Replace);
1421
selSvc.
SetSelectedComponents
(new object[] { next }, SelectionTypes.Replace);
1502
selSvc.
SetSelectedComponents
(new object[] { targetSelection }, SelectionTypes.Replace);
System\Windows\Forms\Design\ControlDesigner.cs (4)
1327
selectionService.
SetSelectedComponents
(new object[] { Component }, SelectionTypes.Primary);
1352
selectionService?.
SetSelectedComponents
(new object[] { Component }, SelectionTypes.Primary);
1418
selectionService.
SetSelectedComponents
(new object[] { Component }, SelectionTypes.Primary | SelectionTypes.Toggle);
1942
GetService<ISelectionService>()?.
SetSelectedComponents
(
System\Windows\Forms\Design\DocumentDesigner.cs (1)
1103
ss.
SetSelectedComponents
(new object[] { Component }, SelectionTypes.Replace);
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (2)
666
SelectionService.
SetSelectedComponents
(new IComponent[] { _primaryDragControl }, SelectionTypes.Primary | SelectionTypes.Replace);
681
SelectionService.
SetSelectedComponents
(new IComponent[] { _dragControls[i] }, SelectionTypes.Add);
System\Windows\Forms\Design\OleDragDropHandler.cs (2)
270
selSvc.
SetSelectedComponents
(selectComps.ToArray(), SelectionTypes.Replace);
823
selService.
SetSelectedComponents
(selectComps.ToArray(), SelectionTypes.Replace);
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
1634
sel?.
SetSelectedComponents
(new object[] { Component }, SelectionTypes.Replace);
1734
selsvc?.
SetSelectedComponents
(new object[] { Component }, SelectionTypes.Primary);
System\Windows\Forms\Design\SelectionUIService.cs (3)
524
_selSvc.
SetSelectedComponents
(new object[] { hti.selectionUIHit!._component }, SelectionTypes.Auto);
541
_selSvc.
SetSelectedComponents
(new object[] { hti.selectionUIHit!._component }, SelectionTypes.Primary);
722
_selSvc.
SetSelectedComponents
(new object[] { hti.selectionUIHit!._component }, SelectionTypes.Primary);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
618
selSvc?.
SetSelectedComponents
(new object[] { control }, SelectionTypes.Primary | SelectionTypes.Replace);
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (1)
114
selSvc?.
SetSelectedComponents
(new object[] { component }, SelectionTypes.Replace);
System\Windows\Forms\Design\ToolStripDesigner.cs (8)
608
SelectionService.
SetSelectedComponents
(null, SelectionTypes.Replace);
616
SelectionService.
SetSelectedComponents
(new IComponent[] { item }, SelectionTypes.Replace);
625
SelectionService.
SetSelectedComponents
(null, SelectionTypes.Replace);
1071
SelectionService.
SetSelectedComponents
(null, SelectionTypes.Replace);
1075
SelectionService.
SetSelectedComponents
(new IComponent[] { targetSelection }, SelectionTypes.Replace);
1958
SelectionService.
SetSelectedComponents
(new IComponent[] { primaryItem }, SelectionTypes.Primary | SelectionTypes.Replace);
2050
SelectionService.
SetSelectedComponents
(new IComponent[] { nextItem }, SelectionTypes.Replace);
2080
SelectionService.
SetSelectedComponents
(new IComponent[] { nextItem }, SelectionTypes.Replace);
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (2)
372
_selectionService.
SetSelectedComponents
(new IComponent[] { _host.RootComponent }, SelectionTypes.Replace);
518
selectionService.
SetSelectedComponents
(new IComponent[] { Component }, SelectionTypes.Replace);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (9)
323
selSvc.
SetSelectedComponents
(null, SelectionTypes.Replace);
355
selSvc.
SetSelectedComponents
(new IComponent[] { selectedItem }, SelectionTypes.Remove);
423
selSvc.
SetSelectedComponents
(new IComponent[] { parent }, SelectionTypes.Replace);
425
selSvc.
SetSelectedComponents
(totalObjects, SelectionTypes.Replace);
439
selSvc.
SetSelectedComponents
(new IComponent[] { glyphItem }, SelectionTypes.Auto);
449
selSvc.
SetSelectedComponents
(new IComponent[] { glyphItem }, SelectionTypes.Remove);
613
selSvc.
SetSelectedComponents
(new IComponent[] { ownerItem }, SelectionTypes.Replace);
747
selSvc.
SetSelectedComponents
(new IComponent[] { selectedItem }, SelectionTypes.Primary | SelectionTypes.Replace);
947
selSvc?.
SetSelectedComponents
(new IComponent[] { item }, SelectionTypes.Auto);
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (4)
401
selSvc?.
SetSelectedComponents
(new object[] { component }, SelectionTypes.Replace);
452
selSvc?.
SetSelectedComponents
(new object[] { component }, SelectionTypes.Replace);
491
selSvc?.
SetSelectedComponents
(new object[] { component }, SelectionTypes.Replace);
548
selSvc?.
SetSelectedComponents
(new object[] { component }, SelectionTypes.Replace);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
878
selSvc?.
SetSelectedComponents
(new object[] { newItem }, SelectionTypes.Replace);
1135
_selectionService.
SetSelectedComponents
(null, SelectionTypes.Replace);
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (17)
534
SelectionService.
SetSelectedComponents
(new object[] { dropDownDesigner.Component }, SelectionTypes.Replace);
701
selSvc.
SetSelectedComponents
(totalObjects, SelectionTypes.Replace);
746
selSvc.
SetSelectedComponents
(totalObjects, SelectionTypes.Replace);
793
selSvc.
SetSelectedComponents
(parentToolStripPanel.Controls, SelectionTypes.Replace);
1057
selSvc.
SetSelectedComponents
(new object[] { Host.RootComponent }, SelectionTypes.Replace);
1406
SelectionService.
SetSelectedComponents
(new object[] { ShiftPrimaryItem, targetSelection }, SelectionTypes.Remove);
1449
SelectionService.
SetSelectedComponents
(new object[] { ShiftPrimaryItem, targetSelection }, SelectionTypes.Remove);
1734
selSvc.
SetSelectedComponents
(null, SelectionTypes.Replace);
1739
selSvc.
SetSelectedComponents
(new object[] { next }, SelectionTypes.Replace);
1911
SelectionService.
SetSelectedComponents
(new object[] { ShiftPrimaryItem, targetSelection }, SelectionTypes.Remove);
1939
SelectionService.
SetSelectedComponents
(new object[] { ShiftPrimaryItem, targetSelection }, SelectionTypes.Remove);
2004
selSvc.
SetSelectedComponents
(new object[] { targetSelection }, SelectionTypes.Replace);
2005
selSvc.
SetSelectedComponents
(null, SelectionTypes.Replace);
2027
SelectionService.
SetSelectedComponents
(totalObjects, SelectionTypes.Replace);
2053
selSvc.
SetSelectedComponents
(null, SelectionTypes.Replace);
2069
selSvc.
SetSelectedComponents
(new object[] { newSelection }, SelectionTypes.Replace);
2083
selSvc.
SetSelectedComponents
(new object[] { targetSelection }, SelectionTypes.Replace);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (9)
612
_selectionService.
SetSelectedComponents
(null, SelectionTypes.Replace);
623
_selectionService.
SetSelectedComponents
(new object[] { MenuItem.DropDownItems[index] }, SelectionTypes.Replace);
1245
_selectionService.
SetSelectedComponents
(new object[] { MenuItem }, SelectionTypes.Replace);
1771
_selectionService?.
SetSelectedComponents
(new IComponent[] { newItem }, SelectionTypes.Replace);
1937
_selectionService.
SetSelectedComponents
(null, SelectionTypes.Replace);
1941
_selectionService.
SetSelectedComponents
(new IComponent[] { targetSelection }, SelectionTypes.Replace);
2447
_selectionService.
SetSelectedComponents
(new object[] { MenuItem }, SelectionTypes.Replace);
2451
_selectionService.
SetSelectedComponents
(null, SelectionTypes.Replace);
2762
_menuItemDesigner._selectionService.
SetSelectedComponents
(new IComponent[] { primaryItem }, SelectionTypes.Primary | SelectionTypes.Replace);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (5)
447
SelectionService.
SetSelectedComponents
(null, SelectionTypes.Replace);
462
SelectionService.
SetSelectedComponents
(null, SelectionTypes.Replace);
492
SelectionService.
SetSelectedComponents
(new object[] { _component }, SelectionTypes.Replace);
496
SelectionService.
SetSelectedComponents
(null, SelectionTypes.Replace);
1135
SelectionService.
SetSelectedComponents
(null, SelectionTypes.Replace);