125 references to SelectionTypes
netstandard (1)
netstandard.cs (1)
275
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.
SelectionTypes
))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
261
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.
SelectionTypes
))]
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\ISelectionService.cs (1)
51
void SetSelectedComponents(ICollection? components,
SelectionTypes
selectionType);
System.Windows.Forms.Design (122)
System\ComponentModel\Design\DesignerHost.cs (2)
706
selectionService?.SetSelectedComponents(null,
SelectionTypes
.Replace);
1147
ss.SetSelectedComponents(selectedComponents,
SelectionTypes
.Replace);
System\ComponentModel\Design\SelectionService.cs (12)
351
=> ((ISelectionService)this).SetSelectedComponents(components,
SelectionTypes
.Auto);
357
void ISelectionService.SetSelectedComponents(ICollection? components,
SelectionTypes
selectionType)
359
bool fToggle = (selectionType &
SelectionTypes
.Toggle) ==
SelectionTypes
.Toggle;
360
bool fPrimary = (selectionType &
SelectionTypes
.Primary) ==
SelectionTypes
.Primary;
361
bool fAdd = (selectionType &
SelectionTypes
.Add) ==
SelectionTypes
.Add;
362
bool fRemove = (selectionType &
SelectionTypes
.Remove) ==
SelectionTypes
.Remove;
363
bool fReplace = (selectionType &
SelectionTypes
.Replace) ==
SelectionTypes
.Replace;
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 (2)
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 (3)
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 (5)
66
selection?.SetSelectedComponents(new object[] { _relatedControl },
SelectionTypes
.Replace);
108
selectionService?.SetSelectedComponents(new object[] { _relatedControl.Parent },
SelectionTypes
.Replace);
186
i == 0 ?
SelectionTypes
.Primary |
SelectionTypes
.Replace :
SelectionTypes
.Add);
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)
2117
sel?.SetSelectedComponents(new object[] { Component },
SelectionTypes
.Primary);
2164
sel?.SetSelectedComponents(new object[] { Component },
SelectionTypes
.Primary);
2207
sel?.SetSelectedComponents(new object[] { Component },
SelectionTypes
.Primary);
2243
s.SetSelectedComponents(new object[] { _component },
SelectionTypes
.Replace);
System\Windows\Forms\Design\ControlCommandSet.cs (3)
942
selSvc.SetSelectedComponents(new object[] { baseComp },
SelectionTypes
.Replace);
1415
selSvc.SetSelectedComponents(new object[] { next },
SelectionTypes
.Replace);
1496
selSvc.SetSelectedComponents(new object[] { targetSelection },
SelectionTypes
.Replace);
System\Windows\Forms\Design\ControlDesigner.cs (5)
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);
1944
SelectionTypes
.Primary);
System\Windows\Forms\Design\DocumentDesigner.cs (1)
1076
ss.SetSelectedComponents(new object[] { Component },
SelectionTypes
.Replace);
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (3)
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 (2)
615
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 (9)
605
SelectionService.SetSelectedComponents(null,
SelectionTypes
.Replace);
613
SelectionService.SetSelectedComponents(new IComponent[] { item },
SelectionTypes
.Replace);
622
SelectionService.SetSelectedComponents(null,
SelectionTypes
.Replace);
1059
SelectionService.SetSelectedComponents(null,
SelectionTypes
.Replace);
1063
SelectionService.SetSelectedComponents(new IComponent[] { targetSelection },
SelectionTypes
.Replace);
1934
SelectionService.SetSelectedComponents(new IComponent[] { primaryItem },
SelectionTypes
.Primary |
SelectionTypes
.Replace);
2023
SelectionService.SetSelectedComponents(new IComponent[] { nextItem },
SelectionTypes
.Replace);
2053
SelectionService.SetSelectedComponents(new IComponent[] { nextItem },
SelectionTypes
.Replace);
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (2)
366
_selectionService.SetSelectedComponents(new IComponent[] { _host.RootComponent },
SelectionTypes
.Replace);
512
selectionService.SetSelectedComponents(new IComponent[] { Component },
SelectionTypes
.Replace);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (10)
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);
944
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)
863
selSvc?.SetSelectedComponents(new object[] { newItem },
SelectionTypes
.Replace);
1117
_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);
1728
selSvc.SetSelectedComponents(null,
SelectionTypes
.Replace);
1733
selSvc.SetSelectedComponents(new object[] { next },
SelectionTypes
.Replace);
1905
SelectionService.SetSelectedComponents(new object[] { ShiftPrimaryItem, targetSelection },
SelectionTypes
.Remove);
1933
SelectionService.SetSelectedComponents(new object[] { ShiftPrimaryItem, targetSelection },
SelectionTypes
.Remove);
1998
selSvc.SetSelectedComponents(new object[] { targetSelection },
SelectionTypes
.Replace);
1999
selSvc.SetSelectedComponents(null,
SelectionTypes
.Replace);
2021
SelectionService.SetSelectedComponents(totalObjects,
SelectionTypes
.Replace);
2047
selSvc.SetSelectedComponents(null,
SelectionTypes
.Replace);
2063
selSvc.SetSelectedComponents(new object[] { newSelection },
SelectionTypes
.Replace);
2077
selSvc.SetSelectedComponents(new object[] { targetSelection },
SelectionTypes
.Replace);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (10)
603
_selectionService.SetSelectedComponents(null,
SelectionTypes
.Replace);
614
_selectionService.SetSelectedComponents(new object[] { MenuItem.DropDownItems[index] },
SelectionTypes
.Replace);
1218
_selectionService.SetSelectedComponents(new object[] { MenuItem },
SelectionTypes
.Replace);
1741
_selectionService?.SetSelectedComponents(new IComponent[] { newItem },
SelectionTypes
.Replace);
1904
_selectionService.SetSelectedComponents(null,
SelectionTypes
.Replace);
1908
_selectionService.SetSelectedComponents(new IComponent[] { targetSelection },
SelectionTypes
.Replace);
2405
_selectionService.SetSelectedComponents(new object[] { MenuItem },
SelectionTypes
.Replace);
2409
_selectionService.SetSelectedComponents(null,
SelectionTypes
.Replace);
2720
_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);
1132
SelectionService.SetSelectedComponents(null,
SelectionTypes
.Replace);