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