OpenSTAAD V8i

Table.SetCellTextHorzAlignment

Sets the text in a particular row and column to a specified horizontal alignment. By default, all the text is right justified. 

VB Syntax

Table.SetCellTextHorzAlignment ReportNo, TableNo, RowNo, ColNo, Alignment

Where:

ReportNo

Long variable containing the report number.

TableNo

Long variable containing the table number.

RowNo

Long variable containing the row number.

ColNo

Long variable containing the column number.

Alignment

An integer variable containing the type of horizontal alignment to apply. The possible values are:

0 = left

1 = center

2 = right

VB Example

'Get the application object --
‘Set the horizontal alignment for the text in row 10 and column 6 to center-    ‘ justified.
objOpenSTAAD.Table.SetCellTextHorzAlignment ReportNo, TableNo, 10, 6, 1