Back to Devexpress

PivotFieldValueHitInfo.ValueHitTest Property

windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotfieldvaluehitinfo.md

latest2.9 KB
Original Source

PivotFieldValueHitInfo.ValueHitTest Property

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

Declaration

csharp
public PivotGridValueHitTest ValueHitTest { get; }
vb
Public ReadOnly Property ValueHitTest As PivotGridValueHitTest

Property Value

TypeDescription
PivotGridValueHitTest

A PivotGridValueHitTest enumeration member that specifies which field value cell element is located under the test point.

|

Available values:

NameDescription
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

csharp
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

vb
Dim hi As PivotGridHitInfo = pivot.CalcHitInfo(e.Location)
    skipFiltering = (hi.ValueInfo IsNot Nothing AndAlso hi.ValueInfo.ValueHitTest = PivotGridValueHitTest.ExpandButton)
End Sub

See Also

PivotFieldValueHitInfo Class

PivotFieldValueHitInfo Members

DevExpress.XtraPivotGrid Namespace