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; 3927Debug.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"); 3931bool groupItems = (_groups.Count == 1) && GroupsEnabled; 4408if (IsAccessibilityObjectCreated && GroupsEnabled && e.GroupIndex >= 0 && e.GroupIndex < Groups.Count) 4575for (int index = 0; index < _groups.Count; index++) 6357for (int i = 0; i < _groups!.Count; i++) 6450for (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 (17)
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 (9)
5659Assert.Equal(3, listView.Groups.Count); 5667Assert.Equal(2, listView.Groups.Count); 5676Assert.Equal(1, listView.Groups.Count); 5702Assert.Equal(count, listView.Groups.Count); 5712Assert.Equal(count, listView.Groups.Count); 5742Assert.Equal(2, listView.Groups.Count); 5750Assert.Equal(1, listView.Groups.Count); 5775Assert.Equal(count, listView.Groups.Count); 5785Assert.Equal(count, listView.Groups.Count);