1 implementation of GetSelectedComponents
System.Windows.Forms.Design (1)
System\ComponentModel\Design\SelectionService.cs (1)
339ICollection ISelectionService.GetSelectedComponents()
75 references to GetSelectedComponents
System.Windows.Forms.Design (43)
System\ComponentModel\Design\ComponentDesigner.cs (1)
256ICollection components = selectionService.GetSelectedComponents();
System\ComponentModel\Design\DesignerHost.cs (1)
1164foreach (object item in ss.GetSelectedComponents())
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (1)
34ICollection selection = ss.GetSelectedComponents();
System\Windows\Forms\Design\Behavior\ContainerSelectorBehavior.cs (1)
218ICollection selComps = selSvc.GetSelectedComponents();
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
325foreach (object component in selSvc.GetSelectedComponents())
System\Windows\Forms\Design\Behavior\SelectionManager.cs (1)
412List<IComponent> selComps = [.._selectionService.GetSelectedComponents().Cast<IComponent>()];
System\Windows\Forms\Design\CommandSet.cs (13)
474ICollection selectedComponents = SelectionService!.GetSelectedComponents(); 801List<IComponent> selComps = [..SelectionService.GetSelectedComponents().Cast<IComponent>()]; 909foreach (IComponent component in SelectionService.GetSelectedComponents()) 977ICollection comps = SelectionService.GetSelectedComponents(); 1124ICollection selectedComponents = SelectionService.GetSelectedComponents(); 1245ICollection selectedComponents = SelectionService.GetSelectedComponents(); 1589ICollection comps = SelectionService.GetSelectedComponents(); 2282ICollection sel = SelectionService.GetSelectedComponents(); 2383ICollection sel = SelectionService.GetSelectedComponents(); 2524ICollection sel = SelectionService.GetSelectedComponents(); 2913ICollection selection = SelectionService.GetSelectedComponents(); 2992ICollection selectedComponents = selSvc.GetSelectedComponents(); 3045ICollection selectedComponents = selSvc.GetSelectedComponents();
System\Windows\Forms\Design\ComponentTray.cs (1)
234_selectedObjects = ((ISelectionService)sender).GetSelectedComponents();
System\Windows\Forms\Design\ControlCommandSet.cs (5)
295ICollection sel = SelectionService.GetSelectedComponents(); 623List<IComponent> selComps = (List<IComponent>)selSvc.GetSelectedComponents(); 750foreach (IComponent component in selSvc.GetSelectedComponents()) 986ICollection sel = SelectionService.GetSelectedComponents(); 1308ICollection selectedComponents = SelectionService.GetSelectedComponents();
System\Windows\Forms\Design\ControlDesigner.cs (1)
1425ICollection selComps = selectionService.GetSelectedComponents();
System\Windows\Forms\Design\DocumentDesigner.cs (2)
562ICollection sels = s.GetSelectedComponents(); 1111ICollection selComponents = svc.GetSelectedComponents();
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (1)
95selectedComponents = selectionService.GetSelectedComponents();
System\Windows\Forms\Design\SelectionUIService.cs (2)
390ICollection selection = _selSvc!.GetSelectedComponents(); 966ICollection col = _selSvc.GetSelectedComponents();
System\Windows\Forms\Design\SplitContainerDesigner.cs (1)
406ICollection selComponents = svc.GetSelectedComponents();
System\Windows\Forms\Design\TabControlDesigner.cs (2)
389ICollection selComponents = svc.GetSelectedComponents(); 421ICollection selComponents = svc.GetSelectedComponents();
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
1469ICollection selectedComps = selSvc.GetSelectedComponents();
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (2)
245ICollection selComponents = _selectionService!.GetSelectedComponents(); 464ICollection selectedComponents = _selectionService.GetSelectedComponents();
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1330ICollection selComponents = SelectionService.GetSelectedComponents();
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
201ICollection selComponents = selectionService.GetSelectedComponents();
System\Windows\Forms\Design\ToolStripItemBehavior.cs (2)
300originalSelComps = selSvc.GetSelectedComponents(); 583ICollection selComps = selSvc.GetSelectedComponents();
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (1)
2025ICollection originalSelComps = selSvc.GetSelectedComponents();
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
2137originalSelComps = selectionSvc.GetSelectedComponents();
System.Windows.Forms.Design.Tests (32)
System\ComponentModel\Design\ComponentDesignerTests.cs (31)
793.Setup(s => s.GetSelectedComponents()) 908.Setup(s => s.GetSelectedComponents()) 959mockSelectionService.Verify(s => s.GetSelectedComponents(), Times.Once()); 972mockSelectionService.Verify(s => s.GetSelectedComponents(), Times.Exactly(2)); 1017.Setup(s => s.GetSelectedComponents()) 1072mockSelectionService.Verify(s => s.GetSelectedComponents(), Times.Once()); 1096mockSelectionService.Verify(s => s.GetSelectedComponents(), Times.Exactly(2)); 1125.Setup(s => s.GetSelectedComponents()) 1178mockSelectionService.Verify(s => s.GetSelectedComponents(), Times.Once()); 1189mockSelectionService.Verify(s => s.GetSelectedComponents(), Times.Exactly(2)); 1218.Setup(s => s.GetSelectedComponents()) 1271mockSelectionService.Verify(s => s.GetSelectedComponents(), Times.Once()); 1282mockSelectionService.Verify(s => s.GetSelectedComponents(), Times.Exactly(2)); 1309.Setup(s => s.GetSelectedComponents()) 1361mockSelectionService.Verify(s => s.GetSelectedComponents(), Times.Once()); 1372mockSelectionService.Verify(s => s.GetSelectedComponents(), Times.Exactly(2)); 1403.Setup(s => s.GetSelectedComponents()) 1456mockSelectionService.Verify(s => s.GetSelectedComponents(), Times.Once()); 1469mockSelectionService.Verify(s => s.GetSelectedComponents(), Times.Exactly(2)); 1510.Setup(s => s.GetSelectedComponents()) 1563mockSelectionService.Verify(s => s.GetSelectedComponents(), Times.Once()); 1576mockSelectionService.Verify(s => s.GetSelectedComponents(), Times.Exactly(2)); 1608.Setup(s => s.GetSelectedComponents()) 1660mockSelectionService.Verify(s => s.GetSelectedComponents(), Times.Once()); 1670mockSelectionService.Verify(s => s.GetSelectedComponents(), Times.Exactly(2)); 1691.Setup(s => s.GetSelectedComponents()) 1738mockSelectionService.Verify(s => s.GetSelectedComponents(), Times.Once()); 1745mockSelectionService.Verify(s => s.GetSelectedComponents(), Times.Exactly(2)); 1881.Setup(s => s.GetSelectedComponents()) 1932mockSelectionService.Verify(s => s.GetSelectedComponents(), Times.Once()); 1944mockSelectionService.Verify(s => s.GetSelectedComponents(), Times.Exactly(2));
System\Windows\Forms\Design\StandardMenuStripVerbTests.cs (1)
91_selectionServiceMock.Setup(s => s.GetSelectedComponents()).Returns(components);