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); 2162SelectionService?.SetSelectedComponents(selectComps.ToArray(), SelectionTypes.Replace); 2228SelectionService.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); 1929SelectionTypes.Primary);
System\Windows\Forms\Design\DocumentDesigner.cs (1)
1115ss.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)
1634sel?.SetSelectedComponents(new object[] { Component }, SelectionTypes.Replace); 1734selsvc?.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)
644SelectionService.SetSelectedComponents(null, SelectionTypes.Replace); 652SelectionService.SetSelectedComponents(new IComponent[] { item }, SelectionTypes.Replace); 661SelectionService.SetSelectedComponents(null, SelectionTypes.Replace); 1094SelectionService.SetSelectedComponents(null, SelectionTypes.Replace); 1098SelectionService.SetSelectedComponents(new IComponent[] { targetSelection }, SelectionTypes.Replace); 1918SelectionService.SetSelectedComponents(new IComponent[] { primaryItem }, SelectionTypes.Primary | SelectionTypes.Replace); 2008SelectionService.SetSelectedComponents(new IComponent[] { nextItem }, SelectionTypes.Replace); 2038SelectionService.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)
534SelectionService.SetSelectedComponents(new object[] { dropDownDesigner.Component }, SelectionTypes.Replace); 701selSvc.SetSelectedComponents(totalObjects, SelectionTypes.Replace); 746selSvc.SetSelectedComponents(totalObjects, SelectionTypes.Replace); 793selSvc.SetSelectedComponents(parentToolStripPanel.Controls, SelectionTypes.Replace); 1066selSvc.SetSelectedComponents(new object[] { Host.RootComponent }, SelectionTypes.Replace); 1415SelectionService.SetSelectedComponents(new object[] { ShiftPrimaryItem, targetSelection }, SelectionTypes.Remove); 1458SelectionService.SetSelectedComponents(new object[] { ShiftPrimaryItem, targetSelection }, SelectionTypes.Remove); 1743selSvc.SetSelectedComponents(null, SelectionTypes.Replace); 1748selSvc.SetSelectedComponents(new object[] { next }, SelectionTypes.Replace); 1920SelectionService.SetSelectedComponents(new object[] { ShiftPrimaryItem, targetSelection }, SelectionTypes.Remove); 1948SelectionService.SetSelectedComponents(new object[] { ShiftPrimaryItem, targetSelection }, SelectionTypes.Remove); 2013selSvc.SetSelectedComponents(new object[] { targetSelection }, SelectionTypes.Replace); 2014selSvc.SetSelectedComponents(null, SelectionTypes.Replace); 2036SelectionService.SetSelectedComponents(totalObjects, SelectionTypes.Replace); 2062selSvc.SetSelectedComponents(null, SelectionTypes.Replace); 2078selSvc.SetSelectedComponents(new object[] { newSelection }, SelectionTypes.Replace); 2092selSvc.SetSelectedComponents(new object[] { targetSelection }, SelectionTypes.Replace);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (10)
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)
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);