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)
51void SetSelectedComponents(ICollection? components, SelectionTypes selectionType);
System.Windows.Forms.Design (122)
System\ComponentModel\Design\DesignerHost.cs (2)
709selectionService?.SetSelectedComponents(null, SelectionTypes.Replace); 1150ss.SetSelectedComponents(selectedComponents, SelectionTypes.Replace);
System\ComponentModel\Design\SelectionService.cs (12)
351=> ((ISelectionService)this).SetSelectedComponents(components, SelectionTypes.Auto); 357void ISelectionService.SetSelectedComponents(ICollection? components, SelectionTypes selectionType) 359bool fToggle = (selectionType & SelectionTypes.Toggle) == SelectionTypes.Toggle; 360bool fPrimary = (selectionType & SelectionTypes.Primary) == SelectionTypes.Primary; 361bool fAdd = (selectionType & SelectionTypes.Add) == SelectionTypes.Add; 362bool fRemove = (selectionType & SelectionTypes.Remove) == SelectionTypes.Remove; 363bool fReplace = (selectionType & SelectionTypes.Replace) == SelectionTypes.Replace;
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (1)
482ss.SetSelectedComponents(list, SelectionTypes.Replace);
System\Windows\Forms\Design\BaseContextMenuStrip.cs (1)
323selectionService.SetSelectedComponents(new object[] { _comp }, SelectionTypes.Replace);
System\Windows\Forms\Design\Behavior\ContainerSelectorBehavior.cs (2)
97selSvc.SetSelectedComponents(new object[] { _containerControl }, SelectionTypes.Primary | SelectionTypes.Toggle);
System\Windows\Forms\Design\Behavior\DesignerActionBehavior.cs (1)
126selectionService.SetSelectedComponents(componentList, SelectionTypes.Primary);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (3)
482selSvc?.SetSelectedComponents(new object[] { _dragComponents[_primaryComponentIndex].dragComponent }, SelectionTypes.Primary | SelectionTypes.Replace); 497selSvc?.SetSelectedComponents(new object[] { _dragComponents[i].dragComponent }, SelectionTypes.Add);
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (1)
96selSvc?.SetSelectedComponents(new object[] { _designer.Component }, SelectionTypes.Primary);
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (5)
66selection?.SetSelectedComponents(new object[] { _relatedControl }, SelectionTypes.Replace); 108selectionService?.SetSelectedComponents(new object[] { _relatedControl.Parent }, SelectionTypes.Replace); 186i == 0 ? SelectionTypes.Primary | SelectionTypes.Replace : SelectionTypes.Add);
System\Windows\Forms\Design\CommandSet.cs (9)
1478SelectionService.SetSelectedComponents(Array.Empty<object>(), SelectionTypes.Replace); 1558SelectionService.SetSelectedComponents(new object[] { commonParent }, SelectionTypes.Replace); 1562SelectionService.SetSelectedComponents(new object[] { host.RootComponent }, SelectionTypes.Replace); 1606SelectionService.SetSelectedComponents(Array.Empty<object>(), SelectionTypes.Replace); 1803SelectionService.SetSelectedComponents(new object[] { commonParent }, SelectionTypes.Replace); 1807SelectionService.SetSelectedComponents(new object[] { host.RootComponent }, SelectionTypes.Replace); 1814SelectionService.SetSelectedComponents(new object[] { host.RootComponent }, SelectionTypes.Replace); 2160SelectionService?.SetSelectedComponents(selectComps.ToArray(), SelectionTypes.Replace); 2226SelectionService.SetSelectedComponents(selComps, SelectionTypes.Replace);
System\Windows\Forms\Design\ComponentTray.cs (4)
2123sel?.SetSelectedComponents(new object[] { Component }, SelectionTypes.Primary); 2170sel?.SetSelectedComponents(new object[] { Component }, SelectionTypes.Primary); 2213sel?.SetSelectedComponents(new object[] { Component }, SelectionTypes.Primary); 2249s.SetSelectedComponents(new object[] { _component }, SelectionTypes.Replace);
System\Windows\Forms\Design\ControlCommandSet.cs (3)
948selSvc.SetSelectedComponents(new object[] { baseComp }, SelectionTypes.Replace); 1421selSvc.SetSelectedComponents(new object[] { next }, SelectionTypes.Replace); 1502selSvc.SetSelectedComponents(new object[] { targetSelection }, SelectionTypes.Replace);
System\Windows\Forms\Design\ControlDesigner.cs (5)
1312selectionService.SetSelectedComponents(new object[] { Component }, SelectionTypes.Primary); 1337selectionService?.SetSelectedComponents(new object[] { Component }, SelectionTypes.Primary); 1403selectionService.SetSelectedComponents(new object[] { Component }, SelectionTypes.Primary | SelectionTypes.Toggle); 1931SelectionTypes.Primary);
System\Windows\Forms\Design\DocumentDesigner.cs (1)
1130ss.SetSelectedComponents(new object[] { Component }, SelectionTypes.Replace);
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (3)
666SelectionService.SetSelectedComponents(new IComponent[] { _primaryDragControl }, SelectionTypes.Primary | SelectionTypes.Replace); 681SelectionService.SetSelectedComponents(new IComponent[] { _dragControls[i] }, SelectionTypes.Add);
System\Windows\Forms\Design\OleDragDropHandler.cs (2)
270selSvc.SetSelectedComponents(selectComps.ToArray(), SelectionTypes.Replace); 823selService.SetSelectedComponents(selectComps.ToArray(), SelectionTypes.Replace);
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
1633sel?.SetSelectedComponents(new object[] { Component }, SelectionTypes.Replace); 1733selsvc?.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)
618selSvc?.SetSelectedComponents(new object[] { control }, SelectionTypes.Primary | SelectionTypes.Replace);
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (1)
114selSvc?.SetSelectedComponents(new object[] { component }, SelectionTypes.Replace);
System\Windows\Forms\Design\ToolStripDesigner.cs (9)
650SelectionService.SetSelectedComponents(null, SelectionTypes.Replace); 658SelectionService.SetSelectedComponents(new IComponent[] { item }, SelectionTypes.Replace); 667SelectionService.SetSelectedComponents(null, SelectionTypes.Replace); 1101SelectionService.SetSelectedComponents(null, SelectionTypes.Replace); 1105SelectionService.SetSelectedComponents(new IComponent[] { targetSelection }, SelectionTypes.Replace); 1937SelectionService.SetSelectedComponents(new IComponent[] { primaryItem }, SelectionTypes.Primary | SelectionTypes.Replace); 2027SelectionService.SetSelectedComponents(new IComponent[] { nextItem }, SelectionTypes.Replace); 2057SelectionService.SetSelectedComponents(new IComponent[] { nextItem }, SelectionTypes.Replace);
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (2)
372_selectionService.SetSelectedComponents(new IComponent[] { _host.RootComponent }, SelectionTypes.Replace); 518selectionService.SetSelectedComponents(new IComponent[] { Component }, SelectionTypes.Replace);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (10)
323selSvc.SetSelectedComponents(null, SelectionTypes.Replace); 355selSvc.SetSelectedComponents(new IComponent[] { selectedItem }, SelectionTypes.Remove); 423selSvc.SetSelectedComponents(new IComponent[] { parent }, SelectionTypes.Replace); 425selSvc.SetSelectedComponents(totalObjects, SelectionTypes.Replace); 439selSvc.SetSelectedComponents(new IComponent[] { glyphItem }, SelectionTypes.Auto); 452selSvc.SetSelectedComponents(new IComponent[] { glyphItem }, SelectionTypes.Remove); 616selSvc.SetSelectedComponents(new IComponent[] { ownerItem }, SelectionTypes.Replace); 756selSvc.SetSelectedComponents(new IComponent[] { selectedItem }, SelectionTypes.Primary | SelectionTypes.Replace); 956selSvc?.SetSelectedComponents(new IComponent[] { item }, SelectionTypes.Auto);
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (4)
401selSvc?.SetSelectedComponents(new object[] { component }, SelectionTypes.Replace); 452selSvc?.SetSelectedComponents(new object[] { component }, SelectionTypes.Replace); 491selSvc?.SetSelectedComponents(new object[] { component }, SelectionTypes.Replace); 548selSvc?.SetSelectedComponents(new object[] { component }, SelectionTypes.Replace);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
878selSvc?.SetSelectedComponents(new object[] { newItem }, SelectionTypes.Replace); 1135_selectionService.SetSelectedComponents(null, SelectionTypes.Replace);
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (17)
543SelectionService.SetSelectedComponents(new object[] { dropDownDesigner.Component }, SelectionTypes.Replace); 717selSvc.SetSelectedComponents(totalObjects, SelectionTypes.Replace); 762selSvc.SetSelectedComponents(totalObjects, SelectionTypes.Replace); 809selSvc.SetSelectedComponents(parentToolStripPanel.Controls, SelectionTypes.Replace); 1082selSvc.SetSelectedComponents(new object[] { Host.RootComponent }, SelectionTypes.Replace); 1427SelectionService.SetSelectedComponents(new object[] { ShiftPrimaryItem, targetSelection }, SelectionTypes.Remove); 1472SelectionService.SetSelectedComponents(new object[] { ShiftPrimaryItem, targetSelection }, SelectionTypes.Remove); 1760selSvc.SetSelectedComponents(null, SelectionTypes.Replace); 1765selSvc.SetSelectedComponents(new object[] { next }, SelectionTypes.Replace); 1937SelectionService.SetSelectedComponents(new object[] { ShiftPrimaryItem, targetSelection }, SelectionTypes.Remove); 1965SelectionService.SetSelectedComponents(new object[] { ShiftPrimaryItem, targetSelection }, SelectionTypes.Remove); 2030selSvc.SetSelectedComponents(new object[] { targetSelection }, SelectionTypes.Replace); 2031selSvc.SetSelectedComponents(null, SelectionTypes.Replace); 2053SelectionService.SetSelectedComponents(totalObjects, SelectionTypes.Replace); 2079selSvc.SetSelectedComponents(null, SelectionTypes.Replace); 2095selSvc.SetSelectedComponents(new object[] { newSelection }, SelectionTypes.Replace); 2109selSvc.SetSelectedComponents(new object[] { targetSelection }, SelectionTypes.Replace);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (10)
622_selectionService.SetSelectedComponents(null, SelectionTypes.Replace); 633_selectionService.SetSelectedComponents(new object[] { MenuItem.DropDownItems[index] }, SelectionTypes.Replace); 1261_selectionService.SetSelectedComponents(new object[] { MenuItem }, SelectionTypes.Replace); 1787_selectionService?.SetSelectedComponents(new IComponent[] { newItem }, SelectionTypes.Replace); 1953_selectionService.SetSelectedComponents(null, SelectionTypes.Replace); 1957_selectionService.SetSelectedComponents(new IComponent[] { targetSelection }, SelectionTypes.Replace); 2466_selectionService.SetSelectedComponents(new object[] { MenuItem }, SelectionTypes.Replace); 2470_selectionService.SetSelectedComponents(null, SelectionTypes.Replace); 2787_menuItemDesigner._selectionService.SetSelectedComponents(new IComponent[] { primaryItem }, SelectionTypes.Primary | SelectionTypes.Replace);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (5)
474SelectionService.SetSelectedComponents(null, SelectionTypes.Replace); 492SelectionService.SetSelectedComponents(null, SelectionTypes.Replace); 522SelectionService.SetSelectedComponents(new object[] { _component }, SelectionTypes.Replace); 526SelectionService.SetSelectedComponents(null, SelectionTypes.Replace); 1174SelectionService.SetSelectedComponents(null, SelectionTypes.Replace);