Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 94

Previous Page 93   Index   Next Page 95

Table Functions
Page 94 of 750
GetTableWidth
Syntax:
float tblGetTableWidth(
const ITBL* Table) // Table pointer
The function returns the width of the table. The function must be called within an open page.
Return values:
If the function succeeds the return value is the width of the table. If the function fails the return value
is -1.
HaveMore
Syntax:
LBOOL tblHaveMore(
const ITBL* Table) // Table pointer
The function checks whether all rows where drawn. The return value is always false if the MaxHeight
parameter of DrawTable() was set to zero.
SetBoxProperty
Syntax:
LBOOL tblSetBoxProperty(
const ITBL* Table,
// Table pointer
SI32 Row,
// Row index or -1
SI32 Col,
// Column index or -1
TTableBoxProperty Type, // see below
float Left,
// Value for the left side
float Right,
// Value for the right side
float Top,
// Value for the top side
float Bottom)
// Value for the bottom side
typedef enum
{
tbpBorderWidth = 0, // Table, Columns, Rows, Cells default (0, 0, 0, 0)
tbpCellSpacing = 1, // Table, Columns, Rows, Cells default (0, 0, 0, 0)
tbpCellPadding = 2
// Table, Columns, Rows, Cells default (0, 0, 0, 0)
}TTableBoxProperty;
The function sets or changes the border width, cell spacing, or cell padding. The properties can be set
to the table, rows, columns, and cells as follows:
Row
Col
Applies to
-1
-1
Table
-1
>= 0
Column
>= 0
-1
Row
>= 0
>= 0
Cell
Cell padding and cell spacing are inherited from the table, columns, and rows, in this order.
 

Previous topic: GetTableHeight

Next topic: SetCellImage