DynaPDF Manual - Page 113

Previous Page 112   Index   Next Page 114

Table Functions
Page 113 of 839
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?
tfFixedTextHeight = 64 // If set, text does not increase the row height if necessary. The row
// height must be non-zero in this case.
}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.
tfFixedTextHeight
If set, text does not increase the row height if necessary. The row height must be
non-zero in this case. The flag is ignored otherwise.
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: SetFont, SetFontSelMode