Skip to main content

IThreadSafeAccessible.GetFieldByArea(PivotArea, Int32) Method

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

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.PivotGrid.v22.1.Core.dll


IThreadSafeField GetFieldByArea(
    PivotArea area,
    int index


Name Type Description
area PivotArea

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

index Int32

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


Type Description

An object that implements the IThreadSafeField interface. Provides thread safe read-only access to basic field settings.


If the specified field index is out of range, the GetFieldByArea method returns null (Nothing in Visual Basic). To obtain the number of fields in a particular area, use the pivot grid’s IThreadSafeAccessible.GetFieldCountByArea method.


Hidden fields cannot be addressed by the GetFieldByArea method.

To obtain a list of fields located in a specific area, use the IThreadSafeAccessible.GetFieldsByArea method.

See Also