TableViewHitInfo.HitTest Property
Gets the visual element located under the test object.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v24.1.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
Property Value
Type | Description |
---|---|
TableViewHitTest | A TableViewHitTest 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). |
RowCell | The test object belongs to a data cell. |
Row | The test object belongs to a data or group row. |
GroupRow | The test object belongs to the group row. |
GroupRowButton | The test object belongs to the button used to expand/collapse a group row. |
GroupRowCheckBox | The test object belongs to the checkbox used to select/deselect rows within a group row. |
ColumnHeaderPanel | The test point belongs to the Column Header Panel. |
ColumnHeader | The test point belongs to a column’s header. |
ColumnHeaderFilterButton | The test point belongs to the filter button displayed within a column header. |
BandHeaderPanel | The test object belongs to the band header panel. |
BandHeader | The test object belongs to a band header. |
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. |
TotalSummary | The test object belongs to a total summary. |
FixedTotalSummary | The test object belongs to the Fixed Summary Panel. |
DataArea | The test object belongs to the area within a table view which is not occupied by rows. |
GroupValue | The test object belongs to a value displayed within the group row. |
GroupSummary | The test object belongs to a group summary. |
ColumnButton | The test object belongs to the header panel button. |
BandButton | The test object belongs to the band button. |
ColumnEdge | The test point belongs to the right edge of a column header. End-users can drag these edges to resize columns horizontally (the column’s BaseColumn.AllowResizing option must be enabled). |
BandEdge | The test point belongs to the right edge of a band header. End-users can drag these edges to resize bands horizontally (the band’s BaseColumn.AllowResizing option must be enabled). |
FixedLeftDiv | The test object belongs to the left fixed line. |
FixedRightDiv | The test object belongs to the right fixed line. |
RowIndicator | The test object belongs to a cell displayed within the row indicator panel. |
GroupFooterRow | The test object belongs to a group footer row. |
GroupFooterSummary | The test object belongs to the group footer summary. |
MasterRowButton | The test object belongs to the button used to expand/collapse a master row. |
SearchPanel | The test object belongs to the Search Panel. |
DataNavigator | The test object belongs to the Data Navigator. |
CompactPanel | The test object belongs to the compact panel. |
SearchPanelShowButton | The test object belongs to the 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 TableViewHitTest.FilterPanel, TableViewHitTest.FilterPanelCloseButton, TableViewHitTest.FilterPanelActiveButton or TableViewHitTest.FilterPanelText.
To learn more, see Hit Information.