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

DynaPDF Manual - Page 102

Previous Page 101   Index   Next Page 103

Table Functions
Page 102 of 750
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetFlags
LBOOL tblSetFlags(
const ITBL* Table, // Table pointer
SI32 Row,
// Row index or -1
SI32 Col,
// Column index or -1
TTableFlags Flags) // see below
typedef enum
{
tfDefault
= 0, // Default
tfStatic
= 1, // Avoid the deletion with ClearContent()
tfHeaderRow
= 2, // Header rows are drawn first after a page break
tfNoLineBreak = 4, // Prohibit line breaks in cells whith text
tfScaleToRect = 8, // Applies to images and templates
tfUseImageCS
= 16,// Insert images in the native color space
tfAddFlags
= 32 // Add the new flags to the current ones?
}TTableFlags;
The function sets various flags. Flags are inherited from the table, column, and rows, in this order.
Flag
Description
tfStatic
This flag avoids the deletion of cell contents when ClearContent(), ClearColumn() or
ClearRow() is called. The flag can be set to rows, columns, and cells.
tfHeaderRow
Header rows are the first rows which are drawn after a page break occurred. It is possible
to mark more than one row as header row.
tfNoLineBreak This flag avoids line breaks in cells which contain text. The flag is inherited from the table,
columns, and rows. Text is output with WriteText() if this flag is set. See SetCellText() for
further information.
tfScaleToRect If set, images and templates are scaled into the cell so that both sides fit into the given
width and height. The aspect ratio will be preserved. The flag is inherited from the table,
columns, and rows.
tfUseImageCS
If set, images are inserted in the native image color space and embedded ICC profiles will
be considered. The flag is inherited from the table, columns, and rows.
tfAddFlags
If set, the new flags are added to the current ones. If absent, the new flags override the
previous value.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: SetColWidth

Next topic: SetFontSelMode