Developer's reference PB2XLS for PowerBuilder

Reference > N_XLS_WORKBOOK_V97 > of_add_format

of_add_format() method

Create new format object which are used to apply formatting to a cell.

Syntax

workbook.of_add_format ( )

Return value

n_xls_format. Returns a reference to the format object. If the format couldn't be created, of_add_format returns NULL.

Examples

n_xls_worksheet sheet
n_xls_format format
sheet = book.of_add_worksheet ( 'sheet 1' ) //create worksheet with name 'sheet 1'
format = book.of_add_format ( ) //create format
format.of_set_bold ( true ) //customize the format