Implemented interface member:
27 references to Count
System.Windows.Forms (10)
System\Windows\Forms\Controls\ListView\ListView.cs (7)
985
=> ShowGroups && _groups is not null && _groups.
Count
> 0 && Application.ComCtlSupportsVisualStyles && !VirtualMode;
3927
Debug.Assert(_groups is not null && _groups.
Count
> 0, "this method should be used only when the user adds a group, not when we add our own DefaultGroup");
3931
bool groupItems = (_groups.
Count
== 1) && GroupsEnabled;
4408
if (IsAccessibilityObjectCreated && GroupsEnabled && e.GroupIndex >= 0 && e.GroupIndex < Groups.
Count
)
4575
for (int index = 0; index < _groups.
Count
; index++)
6357
for (int i = 0; i < _groups!.
Count
; i++)
6450
for (int i = 0; i < _groups!.
Count
; i++)
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (3)
167
for (int i = 0; i < groups.
Count
; i++)
189
for (int i = 0; i <
Count
; i++)
196
for (int i = 0; i <
Count
; i++)
System.Windows.Forms.Tests (17)
System\Windows\Forms\ListViewGroupCollectionTests.cs (8)
452
Assert.Equal(2, collection.
Count
);
545
Assert.Equal(2, collection.
Count
);
565
Assert.Equal(2, collection.
Count
);
568
Assert.Equal(2, otherCollection.
Count
);
744
Assert.Equal(2, collection.
Count
);
759
Assert.Equal(2, collection.
Count
);
1003
Assert.Equal(3, collection.
Count
);
1007
Assert.Equal(2, collection.
Count
);
System\Windows\Forms\ListViewTests.cs (9)
5659
Assert.Equal(3, listView.Groups.
Count
);
5667
Assert.Equal(2, listView.Groups.
Count
);
5676
Assert.Equal(1, listView.Groups.
Count
);
5702
Assert.Equal(count, listView.Groups.
Count
);
5712
Assert.Equal(count, listView.Groups.
Count
);
5742
Assert.Equal(2, listView.Groups.
Count
);
5750
Assert.Equal(1, listView.Groups.
Count
);
5775
Assert.Equal(count, listView.Groups.
Count
);
5785
Assert.Equal(count, listView.Groups.
Count
);