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)
709
selectionService?.
SetSelectedComponents
(null, SelectionTypes.Replace);
1150
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)
97
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)
1312
selectionService.
SetSelectedComponents
(new object[] { Component }, SelectionTypes.Primary);
1337
selectionService?.
SetSelectedComponents
(new object[] { Component }, SelectionTypes.Primary);
1403
selectionService.
SetSelectedComponents
(new object[] { Component }, SelectionTypes.Primary | SelectionTypes.Toggle);
1927
GetService<ISelectionService>()?.
SetSelectedComponents
(
System\Windows\Forms\Design\DocumentDesigner.cs (1)
1115
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)
644
SelectionService.
SetSelectedComponents
(null, SelectionTypes.Replace);
652
SelectionService.
SetSelectedComponents
(new IComponent[] { item }, SelectionTypes.Replace);
661
SelectionService.
SetSelectedComponents
(null, SelectionTypes.Replace);
1094
SelectionService.
SetSelectedComponents
(null, SelectionTypes.Replace);
1098
SelectionService.
SetSelectedComponents
(new IComponent[] { targetSelection }, SelectionTypes.Replace);
1918
SelectionService.
SetSelectedComponents
(new IComponent[] { primaryItem }, SelectionTypes.Primary | SelectionTypes.Replace);
2008
SelectionService.
SetSelectedComponents
(new IComponent[] { nextItem }, SelectionTypes.Replace);
2038
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);
452
selSvc.
SetSelectedComponents
(new IComponent[] { glyphItem }, SelectionTypes.Remove);
616
selSvc.
SetSelectedComponents
(new IComponent[] { ownerItem }, SelectionTypes.Replace);
756
selSvc.
SetSelectedComponents
(new IComponent[] { selectedItem }, SelectionTypes.Primary | SelectionTypes.Replace);
956
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);
1066
selSvc.
SetSelectedComponents
(new object[] { Host.RootComponent }, SelectionTypes.Replace);
1415
SelectionService.
SetSelectedComponents
(new object[] { ShiftPrimaryItem, targetSelection }, SelectionTypes.Remove);
1458
SelectionService.
SetSelectedComponents
(new object[] { ShiftPrimaryItem, targetSelection }, SelectionTypes.Remove);
1743
selSvc.
SetSelectedComponents
(null, SelectionTypes.Replace);
1748
selSvc.
SetSelectedComponents
(new object[] { next }, SelectionTypes.Replace);
1920
SelectionService.
SetSelectedComponents
(new object[] { ShiftPrimaryItem, targetSelection }, SelectionTypes.Remove);
1948
SelectionService.
SetSelectedComponents
(new object[] { ShiftPrimaryItem, targetSelection }, SelectionTypes.Remove);
2013
selSvc.
SetSelectedComponents
(new object[] { targetSelection }, SelectionTypes.Replace);
2014
selSvc.
SetSelectedComponents
(null, SelectionTypes.Replace);
2036
SelectionService.
SetSelectedComponents
(totalObjects, SelectionTypes.Replace);
2062
selSvc.
SetSelectedComponents
(null, SelectionTypes.Replace);
2078
selSvc.
SetSelectedComponents
(new object[] { newSelection }, SelectionTypes.Replace);
2092
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);
2450
_selectionService.
SetSelectedComponents
(new object[] { MenuItem }, SelectionTypes.Replace);
2454
_selectionService.
SetSelectedComponents
(null, SelectionTypes.Replace);
2771
_menuItemDesigner._selectionService.
SetSelectedComponents
(new IComponent[] { primaryItem }, SelectionTypes.Primary | SelectionTypes.Replace);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (5)
474
SelectionService.
SetSelectedComponents
(null, SelectionTypes.Replace);
492
SelectionService.
SetSelectedComponents
(null, SelectionTypes.Replace);
522
SelectionService.
SetSelectedComponents
(new object[] { _component }, SelectionTypes.Replace);
526
SelectionService.
SetSelectedComponents
(null, SelectionTypes.Replace);
1174
SelectionService.
SetSelectedComponents
(null, SelectionTypes.Replace);