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

PivotGridFieldCollectionBase.IndexOf(PivotGridFieldBase) Method

Returns the specified field’s position within the collection.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.PivotGrid.v18.2.Core.dll

Declaration

public int IndexOf(
    PivotGridFieldBase field
)

Parameters

Name Type Description
field PivotGridFieldBase

A PivotGridFieldBase object to locate in the collection.

Returns

Type Description
Int32

A zero-based integer which represents the field’s position within the collection. -1 if the field doesn’t belong to the collection.

Remarks

The IndexOf method’s return value corresponds to the column’s PivotGridFieldBase.Index property.

See Also