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

DynaPDF Manual - Page 88

Previous Page 87   Index   Next Page 89

Table Functions
Page 88 of 750
AddRows
Syntax:
SI32 tblAddRows(
const ITBL* Table, // Table pointer
UI32 Count,
// Number of rows to be added
float Height)
// Minimum height or -1 for default height
The functions adds new rows 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 each row. If the height of a foreground
object is larger, then the row height will be adjusted.
The height is sometimes required. This is the case if 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 new number of rows in the table. If the function fails, the
return value is a negative error code.
ClearColumn
void tblClearColumn(
const ITBL* Table,
// Table pointer
UI32 Col,
// Column index
TDeleteContent Types) // See ClearContent()
The function deletes the content in the specified column in all rows. The paramter Types is described
in ClearContent() below.
ClearContent
Syntax:
void tblClearContent(
const ITBL* Table,
// Table pointer
TDeleteContent Types) // See below
typedef enum
{
dcText
= 0x00000001, // Text is always a foreground object
dcImage
= 0x00000002, // Images
dcTemplate
= 0x00000004, // Templates
dcTable
= 0x00000008, // Sub tables are always foreground objects
dcAllCont
= 0x0000001F, // Delete all content types
// Required additional flag
dcForeGround = 0x10000000, // Only foreground objects?
dcBackGround = 0x20000000, // Only background objects?
 

Previous topic: AddRow

Next topic: CreateTable