/// <summary> /// Removes a specific item from the 'RecentFileCollection'. /// </summary> /// <param name='recValue'> /// The item to remove from the 'RecentFileCollection'. /// </param> public void Remove(RecentFile recValue) { List.Remove(recValue); }
/// <summary> /// Initializes a new instance of 'RecentFileCollection' with an array of 'RecentFile' objects. /// </summary> /// <param name='recValue'> /// An array of 'RecentFile' objects with which to initialize the collection /// </param> public RecentFileCollection(RecentFile[] recValue) { this.AddRange(recValue); }
/// <summary> /// Returns the index of a 'RecentFile' object in the collection. /// </summary> /// <param name='recValue'> /// The 'RecentFile' object whose index will be retrieved. /// </param> /// <returns> /// If found, the index of the value; otherwise, -1. /// </returns> public int IndexOf(RecentFile recValue) { return List.IndexOf(recValue); }
/// <summary> /// Inserts an existing 'RecentFile' into the collection at the specified index. /// </summary> /// <param name='intIndex'> /// The zero-based index where the new item should be inserted. /// </param> /// <param name='recValue'> /// The item to insert. /// </param> public void Insert(int intIndex, RecentFile recValue) { List.Insert(intIndex, recValue); }
/// <summary> /// Gets a value indicating whether the 'RecentFileCollection' contains the specified value. /// </summary> /// <param name='recValue'> /// The item to locate. /// </param> /// <returns> /// True if the item exists in the collection; false otherwise. /// </returns> public bool Contains(RecentFile recValue) { return List.Contains(recValue); }
/// <summary> /// Copies the 'RecentFileCollection' values to a one-dimensional System.Array /// instance starting at the specified array index. /// </summary> /// <param name='recArray'> /// The one-dimensional System.Array that represents the copy destination. /// </param> /// <param name='intIndex'> /// The index in the array where copying begins. /// </param> public void CopyTo(RecentFile[] recArray, int intIndex) { List.CopyTo(recArray, intIndex); }
/// <summary> /// Adds a 'RecentFile' item with the specified value to the 'RecentFileCollection' /// </summary> /// <param name='recValue'> /// The 'RecentFile' to add. /// </param> /// <returns> /// The index at which the new element was inserted. /// </returns> public int Add(RecentFile recValue) { return List.Add(recValue); }
/// <summary> /// Copies the elements of an array at the end of this instance of 'RecentFileCollection'. /// </summary> /// <param name='recValue'> /// An array of 'RecentFile' objects to add to the collection. /// </param> public void AddRange(RecentFile[] recValue) { for (int intCounter = 0; (intCounter < recValue.Length); intCounter = (intCounter + 1)) { this.Add(recValue[intCounter]); } }
/// <summary> /// Adds a 'RecentFile' item with the specified value to the 'RecentFileCollection' /// </summary> /// <param name='recValue'> /// The 'RecentFile' to add. /// </param> /// <returns> /// The index at which the new element was inserted. /// </returns> public int Add(RecentFile recValue) { return(List.Add(recValue)); }
/// <summary> /// Returns the index of a 'RecentFile' object in the collection. /// </summary> /// <param name='recValue'> /// The 'RecentFile' object whose index will be retrieved. /// </param> /// <returns> /// If found, the index of the value; otherwise, -1. /// </returns> public int IndexOf(RecentFile recValue) { return(List.IndexOf(recValue)); }
/// <summary> /// Gets a value indicating whether the 'RecentFileCollection' contains the specified value. /// </summary> /// <param name='recValue'> /// The item to locate. /// </param> /// <returns> /// True if the item exists in the collection; false otherwise. /// </returns> public bool Contains(RecentFile recValue) { return(List.Contains(recValue)); }