9 references to IndexOf
System.Windows.Forms (4)
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6935OnGroupCollapsedStateChanged(new ListViewGroupEventArgs(Groups.IndexOf(group)));
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (2)
85? _owningListView.Groups.IndexOf(_owningGroup) + 1 86: _owningListView.Groups.IndexOf(_owningGroup);
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (1)
234return IndexOf(group);
System.Windows.Forms.Tests (5)
System\Windows\Forms\ListViewGroupCollectionTests.cs (5)
696Assert.Equal(0, collection.IndexOf(group)); 697Assert.Equal(-1, collection.IndexOf(new ListViewGroup())); 698Assert.Equal(-1, collection.IndexOf(null)); 707Assert.Equal(-1, collection.IndexOf(new ListViewGroup())); 708Assert.Equal(-1, collection.IndexOf(null));