Table of Contents

ITableDefinition.ColumnFromId Method

Returns the column definition for an id, or returns a column with Id = -1 and name empty if the id doesn't exist.

Syntax

Unit: FlexCel.Core

function ITableDefinition.ColumnFromId(const aId: Integer; const xls: TCoreExcelFile; const tableSheet: Integer): TTableColumnDefinition; virtual; abstract;

Parameters

<-> Parameter Type Description
const aId Integer Id for the column.
const xls TCoreExcelFile Excel file where the table is. you can set it to null to retrieve the actual value stored in the column.
If not null, this method will try to get the actual name in the cell and return that as the column name.
const tableSheet Integer Sheet where the table is.(1 based)

See also