DynaPDF Manual - Page 97

Previous Page 96   Index   Next Page 98

Table Functions
Page 97 of 839
Table Functions
AddColumn
Syntax:
SI32 tblAddColumn(
const ITBL* Table, // Table pointer
LBOOL Left,
// Add the column on the left or right side?
float Width)
// Column width
The function adds a column on the left or right side of the table. In most cases it is required to change
the table width and the widths of the remaining columns after a new column was added. This can be
done with SetTableWidth() and SetColWidth().
If possible, create the table directly with the required number of columns.
Return values:
If the function succeeds, the return value is new number of columns. If the function fails, the return
value is a negative error code.
AddRow
Syntax:
SI32 tblAddRow(
const ITBL* Table, // Table pointer
float Height)
// Minimum height or -1 for default height
The functions adds a new row to the table. The parameter Height can be set to a negative value to
indicate that the default row height should be used. The default row height was specified in
CreateTable().
The specified height represents the minumum height of the row. If the height of a foreground object
is larger then the height will be adjusted.
The height is sometimes required. This is the case when a cell is rotated by 90 or a multiple of 90
degrees and if the height cannot be computed from the cell contents, e.g. if a cell contains text and if
the flag tfNoLineBreak is absent. See SetCellOrientation() for further information.
Return values:
If the function succeeds, the return value is the row index, a value greater or equal zero. If the
function fails, the return value is a negative error code.
 

Previous topic: Table Creation

Next topic: AddRows, ClearColumn, ClearContent