libxlsxwriter
Loading...
Searching...
No Matches
Data Fields
lxw_table_column Struct Reference

Table columns options. More...

Detailed Description

Structure to set the options of a table column added with worksheet_add_table(). See Parameter: columns.

Examples
tables.c.

Data Fields

const char * header
 
const char * formula
 
const char * total_string
 
uint8_t total_function
 
lxw_format * header_format
 
lxw_format * format
 
double total_value
 

Field Documentation

◆ header

const char* lxw_table_column::header

Set the header name/caption for the column. If NULL the header defaults to Column 1, Column 2, etc.

Examples
tables.c.

◆ formula

const char* lxw_table_column::formula

Set the formula for the column.

◆ total_string

const char* lxw_table_column::total_string

Set the string description for the column total.

◆ total_function

uint8_t lxw_table_column::total_function

Set the function for the column total.

◆ header_format

lxw_format* lxw_table_column::header_format

Set the format for the column header.

◆ format

lxw_format* lxw_table_column::format

Set the format for the data rows in the column. This is applied to data written to the column before the table is added, overriding any existing cell format, and to the column formula and total function cells written by the table. Data written after the table is added needs to have the format applied explicitly.

◆ total_value

double lxw_table_column::total_value

Set the formula value for the column total (not generally required).