BandedGridHitInfo.HitTest Property

Gets or sets a value identifying the type of the View's visual element located under the test point.

Namespace: DevExpress.XtraGrid.Views.BandedGrid.ViewInfo

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

public BandedGridHitTest HitTest { get; set; }
Public Property HitTest As BandedGridHitTest

Property Value

Type Description
BandedGridHitTest

A BandedGridHitTest enumeration value identifying the visual element under the test point.

Remarks

Usually, the HitTest property is used to determine the type of the element located under the mouse pointer. However, this property may not always suit your needs. Suppose that you need to determine whether a point is over a column header panel. In this case, using the HitTest property means that you need to check whether this property's return value is BandedGridHitTest.Column, BandedGridHitTest.ColumnButton, BandedGridHitTest.ColumnEdge, BandedGridHitTest.ColumnFilterButton or BandedGridHitTest.ColumnPanel. Thus, it is best to use other properties of the BandedGridHitInfo object in this instance. For the example considered, the best choice is the GridHitInfo.InColumnPanel property.

See Also