/// <summary> /// Returns zero based index of the Word object in /// the collection /// </summary> /// <param name="item" type="Word"> /// Word object to be checked for index /// </param> /// <returns type="integer"> /// Zero based index of Word object in the collection /// </returns> public int IndexOf(Word item) { return(List.IndexOf(item)); }
/// <summary> /// Check if the Word object is in the collection /// </summary> /// <param name="item" type="Word"> /// Word object /// </param> /// <returns type="bool"> /// Boolean value of the checking result /// </returns> public bool Contains(Word item) { return(List.Contains(item)); }
/// <summary> /// Add Word object to the collection at specified index /// </summary> /// <param name="index" type="integer"> /// Zero based index /// </param> /// <param name="item" type="Word"> /// Word object /// </param> public void Insert(int index, Word item) { List.Insert(index, item); }
/// <summary> /// Remove the Word object from collection /// </summary> /// <param name="item" type="Word"> /// Word object to be removed /// </param> public void Remove(Word item) { List.Remove(item); }
/// <summary> /// Add a Word object to the collection /// </summary> /// <param name="item" type="Word"> /// Word object /// </param> /// <returns type="integer"> /// Zero based index of the added Word object in /// the colleciton /// </returns> public int Add(Word item) { return(List.Add(item)); }