11 references to Contains
System.Windows.Forms (6)
System\Windows\Forms\Controls\ListView\ListView.cs (2)
3496
if (item.Group is not null && Groups.
Contains
(item.Group))
3979
Debug.Assert(group == DefaultGroup || Groups.
Contains
(group), "Make sure ListView.Groups contains this group before adding the native LVGROUP. Otherwise, custom-drawing may break.");
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (1)
78
=> _accessibilityObject ??= new ListViewGroupAccessibleObject(this, ListView?.Groups.
Contains
(this) == false);
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (3)
117
if (
Contains
(group))
218
return
Contains
(group);
242
if (
Contains
(group))
System.Windows.Forms.Tests (5)
System\Windows\Forms\ListViewGroupCollectionTests.cs (5)
648
Assert.True(collection.
Contains
(group));
649
Assert.False(collection.
Contains
(new ListViewGroup()));
650
Assert.False(collection.
Contains
(null));
659
Assert.False(collection.
Contains
(new ListViewGroup()));
660
Assert.False(collection.
Contains
(null));