Sign in Join
FPDoc Onlineexperiment

TGridColumns.IndexOf function

Member of TGridColumnspublicIn unit Grids

Gets the ordinal position in the collection for the specified column.

Declaration

pascal
function IndexOf(Column: TGridColumn): Integer

Arguments

Column

Grid column to locate in the collection.

Function result

Ordinal position for the collection item, or -1 when not found.

Description

IndexOf is an Integer function used to get the ordinal position in the collection for the TGridColumn instance specified in Column. The return value contains the ordinal position (in the range 0 to Count-1), or -1 when no items exist in the collection or when Column cannot be located in the container.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.