MTblSetCellFont

Functions ›› MTblSet... ›› MTblSetCell... ››
Parent Previous Next

bOk = MTblSetCellFont( hWndCol, nRow, sName, nSize, nEnh, nFlags )

Sets a cell's font.

Parameters
hWndCol
Window Handle: Handle of the column

nRow
Number: Row number

sName
String: Font name. Specify MTBL_FONT_UNDEF_NAME to leave the name undefined.

nSize
Number: Font size. Specify MTBL_FONT_UNDEF_SIZE to leave the size undefined.

nEnh
Number:Any combination of the following enhancements: FONT_EnhBold, FONT_EnhItalic, FONT_EnhStrikeOut and FONT_EnhUnderline. Specify MTBL_FONT_UNDEF_ENH to leave the enhancements undefined.

nFlags
Number: Any combination of the following flags:

MTSF_REDRAW

Redraws the cell

Return
Boolean: TRUE if successful or FALSE if an error occurs

Example
In this example a cell's font is set to Arial, size 10. The enhancements are undefined and the cell is redrawn:

Call MTblSetCellFont( hWndCol, nRow, "Arial", 10, MTBL_FONT_UNDEF_ENH, MTSF_REDRAW )

See also
Custom fonts and colors

Created with the Personal Edition of HelpNDoc: News and information about help authoring tools and software