Esempio n. 1
0
 /// <summary>
 /// Removes the first occurrence of a specific object from the collection.
 /// </summary>
 /// <param name="item">The object to remove from the collection.</param>
 /// <returns>true if item is successfully removed; otherwise, false. This method also returns false if item was not found in the collection.</returns>
 public bool Remove(DataGridGroupSummarize item) {
     if (List.Contains(item)) {
         List.Remove(item);
         return true;
     }
     return false;
 }
Esempio n. 2
0
 /// <summary>
 /// Determines whether an element is in the collection.
 /// </summary>
 /// <param name="item">The object to locate in the collection.</param>
 /// <returns>true if item is found in the collection; otherwise, false</returns>
 public bool Contains(DataGridGroupSummarize item) { return List.Contains(item); }
Esempio n. 3
0
 /// <summary>
 /// Adds a DataGridGroupSummarize to the list of items for a DataGrid.
 /// </summary>
 public DataGridGroupSummarize Add(DataGridGroupSummarize item) {
     item._owner = _owner;
     int index = List.Add(item);
     return (DataGridGroupSummarize)List[index];
 }
Esempio n. 4
0
 /// <summary>
 /// Inserts an element into the collection at the specified index.
 /// </summary>
 /// <param name="index">The zero-based index at which item should be inserted.</param>
 /// <param name="item">The DataGridGroupSummarize object to insert.</param>
 public void Insert(int index, DataGridGroupSummarize item) {
     if (item != null) {
         item._owner = _owner;
         List.Insert(index, item);
     }
 }
Esempio n. 5
0
 /// <summary>
 /// Returns the index within the collection of the specified item.
 /// </summary>
 /// <param name="item">A DataGridGroupSummarize object representing the item to locate in the collection.</param>
 /// <returns>The zero-based index where the item is located within the collection; otherwise, negative one (-1).</returns>
 public int IndexOf(DataGridGroupSummarize item) { return List.IndexOf(item); }