1 implementation of SelectionCount
System.Windows.Forms.Design (1)
System\ComponentModel\Design\SelectionService.cs (1)
305int ISelectionService.SelectionCount => _selection?.Count ?? 0;
14 references to SelectionCount
System.Windows.Forms.Design (12)
System\ComponentModel\Design\DesignerHost.cs (1)
1173List<string> list = new(ss.SelectionCount);
System\ComponentModel\Design\MenuCommandService.cs (1)
197if (_selectionService?.SelectionCount == 1 && TryGetService(out IDesignerHost? designerHost))
System\Windows\Forms\Design\CommandSet.cs (3)
783DesignerTransaction trans = SelectionService.SelectionCount > 1 784? host.CreateTransaction(string.Format(SR.DragDropMoveComponents, SelectionService.SelectionCount)) 2897selCount = SelectionService.SelectionCount;
System\Windows\Forms\Design\ComponentTray.cs (1)
658&& !(selectionService.SelectionCount == 1 && selectionService.PrimarySelection == _mainDesigner.Component))
System\Windows\Forms\Design\ControlCommandSet.cs (2)
598if (selSvc.SelectionCount > 1) 600trans = host.CreateTransaction(string.Format(SR.DragDropSizeComponents, selSvc.SelectionCount));
System\Windows\Forms\Design\DocumentDesigner.cs (1)
978if (selSvc.SelectionCount == 1 && selSvc.GetComponentSelected(Component))
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
131fActive = (fActive == (_selUIsvc._selSvc.SelectionCount <= 1));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
1586selCount = selSvc.SelectionCount;
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
83if (_selectionService.SelectionCount > 1)
System.Windows.Forms.Design.Tests (2)
System\ComponentModel\Design\DesignSurfaceTests.cs (2)
216Assert.Equal(0, service.SelectionCount); 1488Assert.Equal(0, service.SelectionCount);