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.1.dll

Declaration

public void SetAreaPosition(
    FieldArea area,
    int areaIndex
)
Public Sub SetAreaPosition(
    area As FieldArea,
    areaIndex As Integer
)

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