Xojo Conferences

DynaPDF Manual - Page 94

Previous Page 93   Index   Next Page 95

Table Functions
Page 94 of 770
float tblGetFlags(
const ITBL* Table, // Table pointer
SI32 Row,
// Row index or -1
SI32 Col)
// Column index or -1
The function returns the current flags of the table, row, column, or cell:
Applies to
>= 0
>= 0
>= 0
>= 0
Return values:
If the function succeeds the return value is greater or equal zero. If the function fails, the return value
is a negative error code.
float tblGetNextHeight(
const ITBL* Table, // Table pointer
float MaxHeight,
// Maximum height or zero to avoid page breaks
SI32* NextRow)
// Can be set to NULL if not needed
The function calculates the height of the table. If the parameter MaxHeight is zero, then the full height
will be returned. If MaxHeight is greater zero, then the height of the table is calculated that fits into
the output height. This is the same height that DrawTable() would produce when drawing the table
with the same parameters. This function can be useful if the height of the table must be known
before it can be drawn. The function caches the result so that multiple calls with a different max
height can be computed fast as possible.
The function must be called within an open page.
Return values:
If the function succeeds the return value is the table height if drawn with the same parameters. If the
function fails the return value is -1.

Previous topic: DrawTable, GetFirstRow

Next topic: GetNextRow, GetNumCols, GetNumRows, GetPDFInstance, GetTableHeight