CardViewHitInfo.HitTest Property
Gets the visual element located under the test object.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v24.2.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
Property Value
Type | Description |
---|---|
CardViewHitTest | A CardViewHitTest enumeration value that identifies the visual element located under the test object. |
Available values:
Name | Description |
---|---|
None | The test object doesn’t belong to a View (it is outside the View). |
FieldValue | The test object belongs to a field value. |
Card | The test object belongs to a card. |
GroupRow | The test object belongs to the group row. |
GroupRowButton | The test object belongs to the button used to expand/collapse a group row. |
ColumnHeaderPanel | The test object belongs to the Column Header Panel. |
ColumnHeader | The test object belongs to a column’s header. |
ColumnHeaderFilterButton | The test object belongs to a column header’s filter button. |
GroupPanel | The test object belongs to the Group Panel. |
GroupPanelColumnHeader | The test object belongs to a column header displayed within the Group Panel. |
GroupPanelColumnHeaderFilterButton | The test object belongs to the filter button displayed by a column header that resides within the Group Panel. |
VerticalScrollBar | The test object belongs to a view’s the vertical scrollbar. |
HorizontalScrollBar | The test object belongs to a view’s the horizontal scrollbar. |
FilterPanel | The test object belongs to the Filter Panel. |
FilterPanelCloseButton | The test object belongs to the Close button displayed within the Filter Panel. |
FilterPanelCustomizeButton | The test object belongs to the Edit Filter button () displayed within the Filter Panel. |
FilterPanelActiveButton | The test object belongs to the button in the Filter Panel used to activate filtering within a View. |
FilterPanelText | The test object belongs to a filter expression displayed within the Filter Panel. |
MRUFilterListComboBox | The test object belongs to a combobox that contains MRU filters. It is displayed within the Filter Panel. |
FilterPanelCollapseButton | The test object belongs to the Collapse Panel button () displayed in the Filter Panel. |
FilterPanelExpandButton | The test object belongs to the Expand Panel button () displayed in the Filter Panel. |
TotalSummaryPanel | The test object belongs to the Summary Panel. |
FixedTotalSummary | The test object belongs to the Fixed Summary Panel. |
TotalSummary | The test object belongs to a total summary. |
DataArea | The test object belongs to the area within a card view which is not occupied by cards. |
GroupValue | The test object belongs to a value displayed within the group row. |
GroupSummary | The test object belongs to a group summary. |
FieldCaption | The test object belongs to a field’s caption. |
CardHeader | The test object belongs to a card’s header. |
CardHeaderButton | The test object belongs to a card expand button. These buttons are displayed at the right edge of card headers, allowing end-users to expand and collapse cards. |
Separator | The test point belongs to a card separator. |
ColumnPanelShowButton | The test object belongs to the button used to show/hide the column header panel. |
SearchPanel | The test object belongs to a search panel. |
SearchPanelShowButton | The test object belongs to a search panel’s show button. |
Remarks
The HitTest property allows you to identify the type of a visual element located under the test object.
Some visual elements can contain other visual elements. For example, the Filter Panel displays the filter expression, filter and close buttons. In this instance, to identify whether the test object is located within the filter panel, use the GridViewHitInfoBase.InFilterPanel property, because the HitTest property can return CardViewHitTest.FilterPanel, CardViewHitTest.FilterPanelCloseButton, CardViewHitTest.FilterPanelActiveButton or CardViewHitTest.FilterPanelText.
To learn more, see Hit Information.