11 references to Contains
System.Windows.Forms (6)
System\Windows\Forms\Controls\ListView\ListView.cs (2)
3492if (item.Group is not null && Groups.Contains(item.Group)) 3975Debug.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)
117if (Contains(group)) 218return Contains(group); 242if (Contains(group))
System.Windows.Forms.Tests (5)
System\Windows\Forms\ListViewGroupCollectionTests.cs (5)
648Assert.True(collection.Contains(group)); 649Assert.False(collection.Contains(new ListViewGroup())); 650Assert.False(collection.Contains(null)); 659Assert.False(collection.Contains(new ListViewGroup())); 660Assert.False(collection.Contains(null));