DynaPDF Manual - Page 115

Previous Page 114   Index   Next Page 116

Table Functions
Page 115 of 839
SetFontSize
Syntax:
LBOOL tblSetFontSize(
const ITBL* Table, // Table pointer
SI32 Row,
// Row index or -1
SI32 Col,
// Column index or -1
float Value)
// Font size
The function sets or changes the font size. The font size is inherited from the table, column, and row,
in this order.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetGridWidth
Syntax:
LBOOL tblSetGridWidth(
const ITBL* Table, // Table pointer
float Horz,
// Horizontal grid width or zero
float Vert)
// Vertical grid width or zero
The table grid consists of horizontal and vertical lines which are drawn in the middle of two rows or
columns. The grid lines cover always the entire width or height of the table. The line widths can be
set to different values for the horizontal and vertical lines. If no lines should be drawn then set the
value to zero. The colors of horizontal and vertical grid lines can be set with SetColor() or
SetColorEx().
Only the table supports grid lines. The parameters Row and Col of SetColor() or SetColorEx() must be
set to -1.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetPDFInstance
Syntax:
void tblSetPDFInstance(
const ITBL* Table, // Table pointer
const PPDF* IPDF)
// Pointer of a valid PDF Instance
The function changes the PDF instance that is associated with the table. The PDF instance must be
changed if the table should be drawn into another PDF instance as the one for which the table was
created.
 

Previous topic: SetFont, SetFontSelMode

Next topic: SetRowHeight, SetTableWidth