wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridcontrol-dot-getfieldsbyarea-x28-devexpress-dot-xpf-dot-pivotgrid-dot-fieldarea-x29.md
Returns a list of fields displayed in the specified area.
Namespace : DevExpress.Xpf.PivotGrid
Assembly : DevExpress.Xpf.PivotGrid.v25.2.dll
NuGet Package : DevExpress.Wpf.PivotGrid
public List<PivotGridField> GetFieldsByArea(
FieldArea area
)
Public Function GetFieldsByArea(
area As FieldArea
) As List(Of PivotGridField)
| Name | Type | Description |
|---|---|---|
| area | FieldArea |
A FieldArea enumeration value that specifies the required field area.
|
| Type | Description |
|---|---|
| List<PivotGridField> |
The list of visible fields displayed in the specified area.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetFieldsByArea(FieldArea) method.
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.
{
var fields = valueItem.PivotGrid.GetFieldsByArea(valueItem.IsColumn ? FieldArea.RowArea : FieldArea.ColumnArea);
if (fields.Count == 0)
Private Shared Function IsTopFiveValuesApplied(ByVal valueItem As FieldValueElementData) As Boolean
Dim fields = valueItem.PivotGrid.GetFieldsByArea(If(valueItem.IsColumn, FieldArea.RowArea, FieldArea.ColumnArea))
If fields.Count = 0 Then
See Also