Skip to main content
A newer version of this page is available. .

PivotGridField.SetAreaPosition(FieldArea, Int32) Method

Positions the field in the specified area and at the specified location.

Namespace: DevExpress.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.PivotGrid, DevExpress.Wpf.PivotGrid

Declaration

public void SetAreaPosition(
    FieldArea area,
    int areaIndex
)

Parameters

Name Type Description
area FieldArea

A FieldArea enumeration member that specifies the area in which the field is placed.

areaIndex Int32

A zero-based integer that specifies the field’s index among the other fields displayed within the same area.

Remarks

Each field can be positioned within one of four areas: Filter Header Area, Column Header Area, Row Header Area and Data Header Area.

The SetAreaPosition method sets the field’s PivotGridField.Area and PivotGridField.AreaIndex properties. You can specify in which areas the field is allowed to be located using the PivotGridField.AllowedAreas property. To obtain whether the field can be located in a particular area, use the PivotGridField.IsAreaAllowed property.

See Also