@brief Create a new @ref format.h "Format" object to formats cells in worksheets.
@param workbook Pointer to a lxw_workbook instance.
@return A lxw_format instance.
The workbook_add_format() function can be used to create new @ref format.h "Format" objects which are used to apply formatting to a cell.
@code // Create the Format. lxw_format *format = workbook_add_format(workbook);
// Set some of the format properties. format_set_bold(format); format_set_font_color(format, LXW_COLOR_RED);
// Use the format to change the text format in a cell. worksheet_write_string(worksheet, 0, 0, "Hello", format); @endcode
See @ref format.h "the Format object" and @ref working_with_formats sections for more details about Format properties and how to set them.
See Implementation
@brief Create a new @ref format.h "Format" object to formats cells in worksheets.
@param workbook Pointer to a lxw_workbook instance.
@return A lxw_format instance.
The workbook_add_format() function can be used to create new @ref format.h "Format" objects which are used to apply formatting to a cell.
@code // Create the Format. lxw_format *format = workbook_add_format(workbook);
// Set some of the format properties. format_set_bold(format); format_set_font_color(format, LXW_COLOR_RED);
// Use the format to change the text format in a cell. worksheet_write_string(worksheet, 0, 0, "Hello", format); @endcode
See @ref format.h "the Format object" and @ref working_with_formats sections for more details about Format properties and how to set them.