OpenSTAAD V8i

Table.SetCellTextColor

Sets the color of the text to be displayed in a particular cell. By default, the color is always set to black.

VB Syntax

Table.SetCellTextColor ReportNo, TableNo, RowNo, ColNo, RedVal, GreenVal, BlueVal

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.

RedVal, GreenVal, BlueVal

An integer between 0 and 255 that represents the intensity of red, green or blue in the color for the text. A value of 0 for a particular color indicates that no shade of that color will be mixed into the final color.

For example, to have the text written in yellow, the values would be RedVal = 255, GreenVal = 255 and BlueVal = 0.

VB Example

'Get the application object --
Dim RedVal As Integer
Dim GreenVal As Integer
Dim BlueVal As Integer
'Set the text to yellow
RedVal = 255
GreenVal = 255
BlueVal = 0
objOpenSTAAD.Table.SetCellTextColor ReportNo, TableNo, RowNo, ColNo, RedVal, GreenVal, BlueVal