/// <summary> /// Search for a given element from among the matched elements. /// </summary> /// /// <returns> /// The index of the element, or -1 if it was not found. /// </returns> /// /// <url> /// http://api.jquery.com/index/ /// </url> public int Index() { IDomObject el = SelectionSet.FirstOrDefault(); if (el != null) { return(GetElementIndex(el)); } return(-1); }