System.Windows.Forms.ListView.SelectedListViewItemCollection.IndexOf C# (CSharp) Method

IndexOf() public method

public IndexOf ( System.Windows.Forms.ListViewItem item ) : int
item System.Windows.Forms.ListViewItem
return int
			public int IndexOf (ListViewItem item)
			{
				if (!owner.is_selection_available)
					return -1;

				for (int i = 0; i < Count; i++)
					if (this [i] == item)
						return i;

				return -1;
			}