worksheet_split_panes

@brief Split a worksheet into panes.

@param worksheet Pointer to a lxw_worksheet instance to be updated. @param vertical The position for the vertical split. @param horizontal The position for the horizontal split.

The %worksheet_split_panes() function can be used to divide a worksheet into horizontal or vertical regions known as panes. This function is different from the worksheet_freeze_panes() function in that the splits between the panes will be visible to the user and each pane will have its own scroll bars.

The parameters vertical and horizontal are used to specify the vertical and horizontal position of the split. The units for vertical and horizontal are the same as those used by Excel to specify row height and column width. However, the vertical and horizontal units are different from each other. Therefore you must specify the vertical and horizontal parameters in terms of the row heights and column widths that you have set or the default values which are 15 for a row and 8.43 for a column.

extern (C)
void
worksheet_split_panes

Examples

@code worksheet_split_panes(worksheet1, 15, 0); // First row. worksheet_split_panes(worksheet2, 0, 8.43); // First column. worksheet_split_panes(worksheet3, 15, 8.43); // First row and column.

@endcode

Meta