DynaPDF Manual - Page 114

Previous Page 113   Index   Next Page 115

Table Functions
Page 114 of 860
Return values:
If the function succeeds the return value is a valid table pointer. If the function fails the return value
is NULL.
DeleteCol
Syntax:
void tblDeleteCol(
const ITBL* Table, // Table pointer
UI32 Col)
// Column index
The function deletes a column from the table. The new table width is the table width minus the
width of the deleted column. It is not possible to delete all columns. One column must be left in the
table.
If the column index is invalid or if the table contains only one column then the function does
nothing.
DeleteRow
Syntax:
void tblDeleteRow(
const ITBL* Table, // Table pointer
UI32 Row)
// Row index
The function deletes a row from the table. If the row index is invalid then the function does nothing.
DeleteRows
Syntax:
void tblDeleteRows(
const ITBL* Table) // Table pointer
The function deletes all rows from the table.
DeleteTable
Syntax:
void tblDeleteTable(
ITBL** Table) // Table pointer
The function deletes a table object. Tables and the corresponding PDF instance should be deleted in
the reversed order of the creation. That means, delete first all tables and then the PDF instance if no
longer needed. This makes sure that the table can be immediatly deleted in programming languages
which use reference counting or garbage collection.
This function is not included in programming languages which use a wrapper class like C#, Delphi,
VB. Net. or PHP. Delete the class instance as usual instead. The destructor deletes the table object in
this case.
 

Previous topic: ClearRow, CreateTable

Next topic: DrawTable, GetFirstRow