SetCellForeColor - method of object PmTable
Sets text color of the cell (eventually the whole columns and rows).
SetCellForeColor(Row As Long, Col As Long, Value As String)
oTable.SetCellForeColor row, col, "#000000" 'color setting by RGB String
|Row||(Long) If the value is >=0 then it is a index of the row (zero-based index). |
Value -2 means the last row.
Value -3 sets the value to all rows.
|Col||(Long) If the value is >=0 then it is a index of the column (zero-based index). |
Value -2 means the last column.
Value -3 sets the value to all columns.
|Value||(String) The new value to be written.|
representing a color is written in the form "#RRGGBB"
It is not possible to set the value -3 in both parameters Row and Col; if the value is set in one parameter, then it cannot be used in the other.
The method can also be called in the graphic item events for Web Panels
Sets the text color of the 2nd row
oTable.SetCellForeColor 1, -3, "#ff0000" 'Red