PivotCustomDrawBaseThreadSafeEventArgs.GetFieldByArea(PivotArea, Int32) Method
Returns a field located at the specified visual position in the specified area.
Namespace: DevExpress.XtraPivotGrid
Assembly: DevExpress.XtraPivotGrid.v24.2.dll
NuGet Package: DevExpress.Win.PivotGrid
#Declaration
public IThreadSafeField GetFieldByArea(
PivotArea area,
int index
)
#Parameters
Name | Type | Description |
---|---|---|
area | Pivot |
A Pivot |
index | Int32 | An integer value that specifies the visible index of the field within the specified area. |
#Returns
Type | Description |
---|---|
IThread |
An object that implements the IThread |
#Remarks
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.
Note
Hidden fields cannot be addressed by the Get
To obtain a list of fields located in a specific area, use the PivotCustomDrawBaseThreadSafeEventArgs.GetFieldsByArea method.