Developer's reference PB2XLS for PowerBuilder

Reference > N_XLS_FORMAT > of_set_rotation

of_set_rotation() method

Set the rotation of the text in a cell.

Syntax

format.of_set_rotation ( style )

Parameters

styleThe integer whose value is rotation style

Return value

Integer. Returns 1 if it succeeds and -1 if an error occurs.

Description

Excel's rotation styles are shown in the following table:

StyleDescription
0No rotation
1Letters run from top to bottom
290° anticlockwise
390° clockwise

Examples

format.of_set_rotation ( 2 )