78 references to Replace
System.Windows.Forms.Design (78)
System\ComponentModel\Design\DesignerHost.cs (2)
706selectionService?.SetSelectedComponents(null, SelectionTypes.Replace); 1147ss.SetSelectedComponents(selectedComponents, SelectionTypes.Replace);
System\ComponentModel\Design\SelectionService.cs (2)
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\DropSourceBehavior.cs (1)
482selSvc?.SetSelectedComponents(new object[] { _dragComponents[_primaryComponentIndex].dragComponent }, SelectionTypes.Primary | SelectionTypes.Replace);
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (3)
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 (1)
2243s.SetSelectedComponents(new object[] { _component }, SelectionTypes.Replace);
System\Windows\Forms\Design\ControlCommandSet.cs (3)
942selSvc.SetSelectedComponents(new object[] { baseComp }, SelectionTypes.Replace); 1415selSvc.SetSelectedComponents(new object[] { next }, SelectionTypes.Replace); 1496selSvc.SetSelectedComponents(new object[] { targetSelection }, SelectionTypes.Replace);
System\Windows\Forms\Design\DocumentDesigner.cs (1)
1076ss.SetSelectedComponents(new object[] { Component }, SelectionTypes.Replace);
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
666SelectionService.SetSelectedComponents(new IComponent[] { _primaryDragControl }, SelectionTypes.Primary | SelectionTypes.Replace);
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 (1)
1634sel?.SetSelectedComponents(new object[] { Component }, SelectionTypes.Replace);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
615selSvc?.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 (8)
605SelectionService.SetSelectedComponents(null, SelectionTypes.Replace); 613SelectionService.SetSelectedComponents(new IComponent[] { item }, SelectionTypes.Replace); 622SelectionService.SetSelectedComponents(null, SelectionTypes.Replace); 1059SelectionService.SetSelectedComponents(null, SelectionTypes.Replace); 1063SelectionService.SetSelectedComponents(new IComponent[] { targetSelection }, SelectionTypes.Replace); 1934SelectionService.SetSelectedComponents(new IComponent[] { primaryItem }, SelectionTypes.Primary | SelectionTypes.Replace); 2023SelectionService.SetSelectedComponents(new IComponent[] { nextItem }, SelectionTypes.Replace); 2053SelectionService.SetSelectedComponents(new IComponent[] { nextItem }, SelectionTypes.Replace);
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (2)
366_selectionService.SetSelectedComponents(new IComponent[] { _host.RootComponent }, SelectionTypes.Replace); 512selectionService.SetSelectedComponents(new IComponent[] { Component }, SelectionTypes.Replace);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (5)
323selSvc.SetSelectedComponents(null, SelectionTypes.Replace); 423selSvc.SetSelectedComponents(new IComponent[] { parent }, SelectionTypes.Replace); 425selSvc.SetSelectedComponents(totalObjects, SelectionTypes.Replace); 613selSvc.SetSelectedComponents(new IComponent[] { ownerItem }, SelectionTypes.Replace); 747selSvc.SetSelectedComponents(new IComponent[] { selectedItem }, SelectionTypes.Primary | SelectionTypes.Replace);
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)
863selSvc?.SetSelectedComponents(new object[] { newItem }, SelectionTypes.Replace); 1117_selectionService.SetSelectedComponents(null, SelectionTypes.Replace);
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (13)
534SelectionService.SetSelectedComponents(new object[] { dropDownDesigner.Component }, SelectionTypes.Replace); 701selSvc.SetSelectedComponents(totalObjects, SelectionTypes.Replace); 746selSvc.SetSelectedComponents(totalObjects, SelectionTypes.Replace); 793selSvc.SetSelectedComponents(parentToolStripPanel.Controls, SelectionTypes.Replace); 1057selSvc.SetSelectedComponents(new object[] { Host.RootComponent }, SelectionTypes.Replace); 1728selSvc.SetSelectedComponents(null, SelectionTypes.Replace); 1733selSvc.SetSelectedComponents(new object[] { next }, SelectionTypes.Replace); 1998selSvc.SetSelectedComponents(new object[] { targetSelection }, SelectionTypes.Replace); 1999selSvc.SetSelectedComponents(null, SelectionTypes.Replace); 2021SelectionService.SetSelectedComponents(totalObjects, SelectionTypes.Replace); 2047selSvc.SetSelectedComponents(null, SelectionTypes.Replace); 2063selSvc.SetSelectedComponents(new object[] { newSelection }, SelectionTypes.Replace); 2077selSvc.SetSelectedComponents(new object[] { targetSelection }, SelectionTypes.Replace);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (9)
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)
447SelectionService.SetSelectedComponents(null, SelectionTypes.Replace); 462SelectionService.SetSelectedComponents(null, SelectionTypes.Replace); 492SelectionService.SetSelectedComponents(new object[] { _component }, SelectionTypes.Replace); 496SelectionService.SetSelectedComponents(null, SelectionTypes.Replace); 1132SelectionService.SetSelectedComponents(null, SelectionTypes.Replace);