public int IndexOf (int selectedIndex) { CheckSorted (); for (int i = 0; i < selection.Count; i++) if ((int)selection [i] == selectedIndex) return i; return -1; } #endregion Public Methods