Back to Devexpress

PivotGridField.SetAreaPosition(FieldArea, Int32) Method

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridfield-dot-setareaposition-x28-devexpress-dot-xpf-dot-pivotgrid-dot-fieldarea-system-dot-int32-x29.md

latest2.7 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

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

Parameters

NameTypeDescription
areaFieldArea

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

AllowedAreas

IsAreaAllowed(FieldArea)

PivotGridField Class

PivotGridField Members

DevExpress.Xpf.PivotGrid Namespace