windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotfieldvaluehitinfo.md
Gets which field value cell element is located under the test point.
Namespace : DevExpress.XtraPivotGrid
Assembly : DevExpress.XtraPivotGrid.v25.2.dll
NuGet Package : DevExpress.Win.PivotGrid
public PivotGridValueHitTest ValueHitTest { get; }
Public ReadOnly Property ValueHitTest As PivotGridValueHitTest
| Type | Description |
|---|---|
| PivotGridValueHitTest |
A PivotGridValueHitTest enumeration member that specifies which field value cell element is located under the test point.
|
Available values:
| Name | Description |
|---|---|
| None |
No element is located under the test point.
| | ExpandButton |
The expand/collapse button is located under the test point.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ValueHitTest property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
win-designer-pivot-as-master-filter/CS/DesignerSample/Form1.cs#L38
PivotGridHitInfo hi = pivot.CalcHitInfo(e.Location);
skipFiltering = (hi.ValueInfo != null && hi.ValueInfo.ValueHitTest == PivotGridValueHitTest.ExpandButton);
}
win-designer-pivot-as-master-filter/VB/DesignerSample/Form1.vb#L40
Dim hi As PivotGridHitInfo = pivot.CalcHitInfo(e.Location)
skipFiltering = (hi.ValueInfo IsNot Nothing AndAlso hi.ValueInfo.ValueHitTest = PivotGridValueHitTest.ExpandButton)
End Sub
See Also