/// <summary> /// Returns the index within the collection of the specified item. /// </summary> /// <param name="item">A DataGridItem 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(DataGridItem item) { return(List.IndexOf(item)); }
/// <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(DataGridItem item) { return(List.Contains(item)); }
/// <summary> /// Create an instance of DataGridCell object. /// </summary> public DataGridCell() { _owner = new DataGridItem(); _font = _owner._font; }
/// <summary> /// Create an instance of DataGridCell object with specified DataGridItem as owner. /// </summary> public DataGridCell(DataGridItem owner) { _owner = owner; _font = _owner._font; }
public DataGridCellCollection(DataGridItem owner) : base() { _owner = owner; }