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; 3931Debug.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"); 3935bool groupItems = (_groups.Count == 1) && GroupsEnabled; 4412if (IsAccessibilityObjectCreated && GroupsEnabled && e.GroupIndex >= 0 && e.GroupIndex < Groups.Count) 4579for (int index = 0; index < _groups.Count; index++) 6361for (int i = 0; i < _groups!.Count; i++) 6454for (int i = 0; i < _groups!.Count; i++)
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (3)
167for (int i = 0; i < groups.Count; i++) 189for (int i = 0; i < Count; i++) 196for (int i = 0; i < Count; i++)
System.Windows.Forms.Tests (15)
System\Windows\Forms\ListViewGroupCollectionTests.cs (8)
452Assert.Equal(2, collection.Count); 545Assert.Equal(2, collection.Count); 565Assert.Equal(2, collection.Count); 568Assert.Equal(2, otherCollection.Count); 744Assert.Equal(2, collection.Count); 759Assert.Equal(2, collection.Count); 1003Assert.Equal(3, collection.Count); 1007Assert.Equal(2, collection.Count);
System\Windows\Forms\ListViewTests.cs (7)
5659Assert.Equal(3, listView.Groups.Count); 5667Assert.Equal(2, listView.Groups.Count); 5702Assert.Equal(count, listView.Groups.Count); 5712Assert.Equal(count, listView.Groups.Count); 5742Assert.Equal(2, listView.Groups.Count); 5775Assert.Equal(count, listView.Groups.Count); 5785Assert.Equal(count, listView.Groups.Count);