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)
709
selectionService?.SetSelectedComponents(null,
SelectionTypes
.Replace);
1150
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)
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 (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);
2160
SelectionService?.SetSelectedComponents(selectComps.ToArray(),
SelectionTypes
.Replace);
2226
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 (5)
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);
1931
SelectionTypes
.Primary);
System\Windows\Forms\Design\DocumentDesigner.cs (1)
1130
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)
1633
sel?.SetSelectedComponents(new object[] { Component },
SelectionTypes
.Replace);
1733
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)
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 (9)
650
SelectionService.SetSelectedComponents(null,
SelectionTypes
.Replace);
658
SelectionService.SetSelectedComponents(new IComponent[] { item },
SelectionTypes
.Replace);
667
SelectionService.SetSelectedComponents(null,
SelectionTypes
.Replace);
1101
SelectionService.SetSelectedComponents(null,
SelectionTypes
.Replace);
1105
SelectionService.SetSelectedComponents(new IComponent[] { targetSelection },
SelectionTypes
.Replace);
1937
SelectionService.SetSelectedComponents(new IComponent[] { primaryItem },
SelectionTypes
.Primary |
SelectionTypes
.Replace);
2027
SelectionService.SetSelectedComponents(new IComponent[] { nextItem },
SelectionTypes
.Replace);
2057
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 (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);
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)
543
SelectionService.SetSelectedComponents(new object[] { dropDownDesigner.Component },
SelectionTypes
.Replace);
717
selSvc.SetSelectedComponents(totalObjects,
SelectionTypes
.Replace);
762
selSvc.SetSelectedComponents(totalObjects,
SelectionTypes
.Replace);
809
selSvc.SetSelectedComponents(parentToolStripPanel.Controls,
SelectionTypes
.Replace);
1082
selSvc.SetSelectedComponents(new object[] { Host.RootComponent },
SelectionTypes
.Replace);
1427
SelectionService.SetSelectedComponents(new object[] { ShiftPrimaryItem, targetSelection },
SelectionTypes
.Remove);
1472
SelectionService.SetSelectedComponents(new object[] { ShiftPrimaryItem, targetSelection },
SelectionTypes
.Remove);
1760
selSvc.SetSelectedComponents(null,
SelectionTypes
.Replace);
1765
selSvc.SetSelectedComponents(new object[] { next },
SelectionTypes
.Replace);
1937
SelectionService.SetSelectedComponents(new object[] { ShiftPrimaryItem, targetSelection },
SelectionTypes
.Remove);
1965
SelectionService.SetSelectedComponents(new object[] { ShiftPrimaryItem, targetSelection },
SelectionTypes
.Remove);
2030
selSvc.SetSelectedComponents(new object[] { targetSelection },
SelectionTypes
.Replace);
2031
selSvc.SetSelectedComponents(null,
SelectionTypes
.Replace);
2053
SelectionService.SetSelectedComponents(totalObjects,
SelectionTypes
.Replace);
2079
selSvc.SetSelectedComponents(null,
SelectionTypes
.Replace);
2095
selSvc.SetSelectedComponents(new object[] { newSelection },
SelectionTypes
.Replace);
2109
selSvc.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)
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);