Table of Contents

XlsFile.GetTable Method

Overloads

XlsFile.GetTable(Int32)

Returns the table definition for the table at position tableIndex, for the active sheet. (1 based)

Syntax

Namespace: FlexCel.XlsAdapter

public override TTableDefinition GetTable(Int32 tableIndex)

Parameters

<-> Parameter Type Description
tableIndex Int32 Position of the table in the active sheet. (1-based)

Returns

The table definition. If tableIndex is out of range, then it will throw an Exception.

See also

XlsFile.GetTable(String, Boolean)

Returns the definition for a table in the file. Note that this method will return any table in the file, not only in the active sheet, as table names are unique in the whole workbook. You can find which sheet the table is in with ExcelFile.GetTableSheet

Syntax

Namespace: FlexCel.XlsAdapter

public override TTableDefinition GetTable(String tableName, Boolean ignoreFormulas)

Parameters

<-> Parameter Type Description
tableName String Name of the table.
ignoreFormulas Boolean If true, this method won't return the formulas for the totals and the column.
This parameter allows to get the table a little faster, when you are not interested in the formulas.

Returns

Null if the table doesn't exist, or the table definition otherwise.

See also