NativeExcel suite v2.x

Orientation property

The text orientation. Can be an integer value from - 90 to 90 degrees or xlVertical. Read/write OleVariant.

Syntax

property Orientation: OleVariant;

Example

This example sets orientation property for the merged ranges A1:A5 and B1:B5
With WorkBook.Sheets[1].Range['A1','A5'] do begin
  Merge;
  Value := 'Text';
  Orientation := 90;
end;

With WorkBook.Sheets[1].Range['B1','B5'] do begin
  Merge;
  Value := 'Vertical';
  Orientation := xlVertical;
end;
Copyright © NikaSoft 2004-2011