예제 #1
0
 /// <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));
 }
예제 #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(DataGridItem item)
 {
     return(List.Contains(item));
 }
예제 #3
0
 /// <summary>
 /// Create an instance of DataGridCell object.
 /// </summary>
 public DataGridCell()
 {
     _owner = new DataGridItem();
     _font  = _owner._font;
 }
예제 #4
0
 /// <summary>
 /// Create an instance of DataGridCell object with specified DataGridItem as owner.
 /// </summary>
 public DataGridCell(DataGridItem owner)
 {
     _owner = owner;
     _font  = _owner._font;
 }
예제 #5
0
 public DataGridCellCollection(DataGridItem owner) : base()
 {
     _owner = owner;
 }