format_set_pattern

@brief Set the background fill pattern for a cell

@param format Pointer to a Format instance. @param index Pattern index.

Set the background pattern for a cell.

The most common pattern is a solid fill of the background color:

@code format = workbook_add_format(workbook);

format_set_pattern (format, LXW_PATTERN_SOLID); format_set_bg_color(format, LXW_COLOR_YELLOW); @endcode

The available fill patterns are:

Fill Type | Define

Medium gray | #LXW_PATTERN_MEDIUM_GRAY Dark gray | #LXW_PATTERN_DARK_GRAY Light gray | #LXW_PATTERN_LIGHT_GRAY Dark horizontal line | #LXW_PATTERN_DARK_HORIZONTAL Dark vertical line | #LXW_PATTERN_DARK_VERTICAL Dark diagonal stripe | #LXW_PATTERN_DARK_DOWN Reverse dark diagonal stripe | #LXW_PATTERN_DARK_UP Dark grid | #LXW_PATTERN_DARK_GRID Dark trellis | #LXW_PATTERN_DARK_TRELLIS Light horizontal line | #LXW_PATTERN_LIGHT_HORIZONTAL Light vertical line | #LXW_PATTERN_LIGHT_VERTICAL Light diagonal stripe | #LXW_PATTERN_LIGHT_DOWN Reverse light diagonal stripe | #LXW_PATTERN_LIGHT_UP Light grid | #LXW_PATTERN_LIGHT_GRID Light trellis | #LXW_PATTERN_LIGHT_TRELLIS 12.5% gray | #LXW_PATTERN_GRAY_125 6.25% gray | #LXW_PATTERN_GRAY_0625

extern (C)
void
format_set_pattern

Meta