Promotic
WikipediaLinkedInYoutubeTwitterFacebook

CellForeColor - property of object PmTable

Description:
Text color of table cell (eventually whole columns and rows).

This property is obsolete (but functional) and is replaced by SetCellForeColor and GetCellForeColor methods.

Syntax:
CellForeColor(Row As Long, Col As Long) As String
Calling:
oTable.CellForeColor(row, col) = "#000000" 'color setting by RGB String
sColor = oTable.CellForeColor(row, col) 'in sColor is a RGB String in the form "#RRGGBB"
Parameters:
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.
Note:
Property access for read and write. The property returns/sets the RGB String in the form "#RRGGBB".

This property is not functional for Web Panels in JavaScript language.

Example1:
Sets the color of the first row
oTable.CellForeColor(0, -3) = "#ff0000" 'Red
oTable.Draw
Example2:
Sets the color of the cell in the second row and the third column
oTable.CellForeColor(1, 2) = "#0000d0" 'Blue
oTable.Draw
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice