mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-21 06:45:21 -06:00
Renamed worksheet_set_column() function to worksheet_set_column_opt() for consistency with current and future APIs. The worksheet_set_column() function is now used without the option. This is a backward incompatible change.
23 lines
629 B
C
23 lines
629 B
C
/*****************************************************************************
|
|
* Test cases for libxlsxwriter.
|
|
*
|
|
* Simple test case to test worksheet set_row() and set_column().
|
|
*
|
|
* Copyright 2014-2016, John McNamara, jmcnamara@cpan.org
|
|
*
|
|
*/
|
|
|
|
#include "xlsxwriter.h"
|
|
|
|
int main() {
|
|
|
|
lxw_workbook *workbook = new_workbook("test_row_col_format03.xlsx");
|
|
lxw_worksheet *worksheet = workbook_add_worksheet(workbook, NULL);
|
|
|
|
lxw_format *italic = workbook_add_format(workbook);
|
|
format_set_italic(italic);
|
|
|
|
worksheet_set_column(worksheet, 0, 0, 8.43, italic);
|
|
|
|
return workbook_close(workbook);
|
|
}
|