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

PivotGridControl.GetFieldByArea(PivotArea, Int32) Method

Returns a field at the specified visual position in the specified area.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v19.2.dll

Declaration

public PivotGridField GetFieldByArea(
    PivotArea area,
    int areaIndex
)

Parameters

Name Type Description
area PivotArea

A PivotArea value that identifies the area containing the required field.

areaIndex Int32

An integer value that specifies the visible index of the field within the specified area.

Returns

Type Description
PivotGridField

A PivotGridField object at the specified visual position within the specified area.

Remarks

Hidden fields cannot be addressed by the GetFieldByArea method.

To return the list of fields in a specific area, use the PivotGridControl.GetFieldsByArea method.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GetFieldByArea(PivotArea, Int32) 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.

See Also