Promotic
WikipediaLinkedInYoutubeTwitterFacebook

CellBackColor - property of object PmTable

Description:
Background color of the cell (eventually the whole columns and rows).

This property is obsolete (but functional) and is replaced by SetCellBackColor and GetCellBackColor methods.

Syntax:
CellBackColor(Row As Long, Col As Long) As String
Calling:
oTable.CellBackColor(row, col) = "#ffffff" 'color setting by RGB String
sColor = oTable.CellBackColor(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.CellBackColor(0, -3) = "#ffffff" 'White
oTable.Draw
Example2:
Sets the color of the cell in the second row and the third column
oTable.CellBackColor(1, 2) = "#c0c0c0" 'LightGray
oTable.Draw
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice