CardHitInfo.HitTest Property

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

Namespace: DevExpress.XtraGrid.Views.Card.ViewInfo

Assembly: DevExpress.XtraGrid.v20.2.dll

Declaration

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

Property Value

Type Description
CardHitTest

A CardHitTest enumeration value identifying the type of the visual element located under the test point.

Remarks

Some View elements (card, filter panel, etc.) can display other elements within them. For instance, the filter panel can display buttons and filter criteria. Thus, care needs to be taken when using the HitTest property. To determine whether the test point is over the filter panel, it's not enough to compare the property's value with the CardHitTest.FilterPanel. Because a constituent element of the panel may reside under the test point and the HitTest property may return CardHitTest.FilterPanelCloseButton, CardHitTest.FilterPanelText, etc. In such cases, it's better to use the other properties of the CardHitInfo object. For example the CardHitInfo.InFilterPanel property.

See Also