Implemented interface member:
25 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;
3931
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");
3935
bool groupItems = (_groups.
Count
== 1) && GroupsEnabled;
4412
if (IsAccessibilityObjectCreated && GroupsEnabled && e.GroupIndex >= 0 && e.GroupIndex < Groups.
Count
)
4579
for (int index = 0; index < _groups.
Count
; index++)
6361
for (int i = 0; i < _groups!.
Count
; i++)
6454
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 (15)
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 (7)
5659
Assert.Equal(3, listView.Groups.
Count
);
5667
Assert.Equal(2, listView.Groups.
Count
);
5702
Assert.Equal(count, listView.Groups.
Count
);
5712
Assert.Equal(count, listView.Groups.
Count
);
5742
Assert.Equal(2, listView.Groups.
Count
);
5775
Assert.Equal(count, listView.Groups.
Count
);
5785
Assert.Equal(count, listView.Groups.
Count
);