Skip to main content

PivotGridFieldCollectionBase.IndexOf(PivotGridFieldBase) Method

Returns the specified field’s position within the collection.

Namespace: DevExpress.XtraPivotGrid

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

NuGet Packages: DevExpress.PivotGrid.Core, DevExpress.Win.Navigation

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 that represents the field’s position within the collection. -1 if the field doesn’t belong to the collection.

See Also