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

IndexOf() public method

public IndexOf ( int checkedIndex ) : int
checkedIndex int
return int
			public int IndexOf (int checkedIndex)
			{
				int [] indices = GetIndices ();
				for (int i = 0; i < indices.Length; i++) {
					if (indices [i] == checkedIndex)
						return i;
				}
				return -1;
			}
			#endregion	// Public Methods