示例#1
0
 /// <summary>
 /// Removes a specific item from the collection.
 /// </summary>
 /// <param name="value">The value to remove</param>
 public void Remove(Worksheet value)
 {
     List.Remove(value);
 }
示例#2
0
 /// <summary>
 /// Insert a value into the collection at a specific index.
 /// </summary>
 /// <param name="index">The index to add the item to the collection.</param>
 /// <param name="value">The item to add to the collection.</param>
 public void Insert(int index, Worksheet value)
 {
     List.Insert(index, value);
 }
示例#3
0
 /// <summary>
 /// Checks to see if the value is contained in the collection.
 /// </summary>
 /// <param name="value">The value to identify</param>
 /// <returns>True if the item is found else false.</returns>
 public bool Contains(Worksheet value)
 {
     return List.Contains(value);
 }
示例#4
0
 /// <summary>
 /// Examines the collection to obtain the index of a given value.
 /// </summary>
 /// <param name="value">The value to locate</param>
 /// <returns>Returns the index of the located item or a -1 if not found.</returns>
 public int IndexOf(Worksheet value)
 {
     return List.IndexOf(value);
 }
示例#5
0
 /// <summary>
 /// Adds a value to the collection
 /// </summary>
 /// <param name="value">The value to add to the collection</param>
 /// <returns>The number of the items currently in the collection.</returns>
 public int Add(Worksheet value)
 {
     return List.Add(value);
 }