9 references to IndexOf
System.Windows.Forms (4)
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6935
OnGroupCollapsedStateChanged(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)
234
return
IndexOf
(group);
System.Windows.Forms.Tests (5)
System\Windows\Forms\ListViewGroupCollectionTests.cs (5)
696
Assert.Equal(0, collection.
IndexOf
(group));
697
Assert.Equal(-1, collection.
IndexOf
(new ListViewGroup()));
698
Assert.Equal(-1, collection.
IndexOf
(null));
707
Assert.Equal(-1, collection.
IndexOf
(new ListViewGroup()));
708
Assert.Equal(-1, collection.
IndexOf
(null));