Name

DataGrid.HitTestInfo

Synopsis

This class is used by the DataGrid.HitTest() method to determine where a particular point is with respect to the grid. You can get the DataGrid.HitTestType from the Type property, as well as the index of the Column and Row that were hit.

The static Nowhere property returns an instance that represents a point entirely outside the grid.


public sealed class DataGrid.HitTestInfo {

// Public Static Fields

   public static readonly HitTestInfo Nowhere;  // ={ None,-1,-1}

                  // Public Instance Properties

   public int Column{get; }

   public int Row{get; }

   public HitTestType Type{get; }

// Public Instance Methods

   public override bool Equals(object value);  // overrides object

   public override int GetHashCode();  // overrides object

   public override string ToString();  // overrides object

}

Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.