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)
454Assert.Equal(2, collection.Count); 547Assert.Equal(2, collection.Count); 567Assert.Equal(2, collection.Count); 570Assert.Equal(2, otherCollection.Count); 746Assert.Equal(2, collection.Count); 761Assert.Equal(2, collection.Count); 1005Assert.Equal(3, collection.Count); 1009Assert.Equal(2, collection.Count);
System\Windows\Forms\ListViewTests.cs (7)
5661Assert.Equal(3, listView.Groups.Count); 5669Assert.Equal(2, listView.Groups.Count); 5704Assert.Equal(count, listView.Groups.Count); 5714Assert.Equal(count, listView.Groups.Count); 5744Assert.Equal(2, listView.Groups.Count); 5777Assert.Equal(count, listView.Groups.Count); 5787Assert.Equal(count, listView.Groups.Count);