format_set_font_color

@brief Set the color of the font used in the cell.

@param format Pointer to a Format instance. @param color The cell font color.

More...
extern (C)
void
format_set_font_color

Detailed Description

Set the font color:

@code format = workbook_add_format(workbook); format_set_font_color(format, LXW_COLOR_RED);

worksheet_write_string(worksheet, 0, 0, "Wheelbarrow", format); @endcode

@image html format_font_color.png

The color should be an RGB integer value, see @ref working_with_colors.

@note The format_set_font_color() method is used to set the font color in a cell. To set the color of a cell background use the format_set_bg_color() and format_set_pattern() methods.

Meta