Implemented interface member:
29 references to Count
System.Windows.Forms (9)
System\Windows\Forms\Controls\ListView\ListView.cs (4)
1921
if (value && SelectedItems.
Count
> 0)
4672
ListViewItem[] lviArr = new ListViewItem[SelectedItems.
Count
];
6687
if ((lvkd->wVKey == (short)Keys.Down || lvkd->wVKey == (short)Keys.Up) && SelectedItems.
Count
> 0)
6915
if (GroupsDisplayed && (key is VIRTUAL_KEY.VK_LEFT or VIRTUAL_KEY.VK_RIGHT) && SelectedItems.
Count
> 0)
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (5)
122
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index,
Count
);
247
return (index >= 0) && (index <
Count
);
326
if (
Count
> 0)
328
Array.Copy(SelectedItemArray, 0, dest, index,
Count
);
412
for (int i = 0; i <
Count
; i++)
System.Windows.Forms.Design (7)
System\Windows\Forms\Design\MaskDesignerDialog.cs (3)
486
if (_listViewCannedMasks.SelectedItems.
Count
> 0)
615
if (_listViewCannedMasks.SelectedItems.
Count
== 0)
709
if (_listViewCannedMasks.SelectedItems.
Count
!= 0)
System\Windows\Forms\Design\StyleEditorForm.cs (4)
638
if (coll.
Count
== 0)
655
_removeButton.Enabled = coll.
Count
!= _columnsAndRowsListView.Items.Count && _columnsAndRowsListView.Items.Count > 1;
657
if (coll.
Count
== 1)
681
for (int i = 1; i < coll.
Count
; i++)
System.Windows.Forms.Tests (13)
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (1)
841
Assert.Equal(3, listView.SelectedItems.
Count
);
System\Windows\Forms\ListViewTests.cs (12)
4485
Assert.Equal(0, control.SelectedItems.
Count
);
4522
Assert.Equal(selectItems ? 2 : 0, control.SelectedItems.
Count
);
5534
Assert.Equal(1, listView.SelectedItems.
Count
);
5541
Assert.Equal(1, listView.SelectedItems.
Count
);
5549
Assert.Equal(1, listView.SelectedItems.
Count
);
5570
Assert.Equal(1, listView.SelectedItems.
Count
);
5579
Assert.Equal(0, listView.SelectedItems.
Count
);
5660
Assert.Equal(1, listView.SelectedItems.
Count
);
5668
Assert.Equal(1, listView.SelectedItems.
Count
);
5677
Assert.Equal(1, listView.SelectedItems.
Count
);
5704
Assert.Equal(selectedCount, listView.SelectedItems.
Count
);
5714
Assert.Equal(selectedCount, listView.SelectedItems.
Count
);