System.Windows.Forms.ListView.ListViewItemCollection.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 != null && owner.VirtualMode) {
					for (int i = 0; i < Count; i++)
						if (RetrieveVirtualItemFromOwner (i) == item)
							return i;

					return -1;
				}
				
				return list.IndexOf (item);
			}