"cellBackColRC"

Defines the background color of a cell at a specific position.

Synopsis

setValue(string shape, "cellBackColRC", int n, string Name, string Color );

getValue(string shape, "cellBackColRC", int n, string Name, string &Color );

shape.cellBackColRC(int n, string Name, string Color);

Parameters

Parameter Description
shape Name of the object
n Row index, starting with 0
Name Column name
Color Background color

Description

This attribute can be used to access the background color for a specific cell.

Example

Different colors are set to different columns of the table.

main()
{
  TABLE1.cellBackColRC(0, "First name", "_invalid");
  TABLE1.cellBackColRC(0, "Last name", "Yellow");
  TABLE1.cellBackColRC(1, "First name", "STD_param_warning");
  TABLE1.cellBackColRC(1, "Last name", "STD_trend_pen8");
  TABLE1.cellBackColRC(2, "First name", "_ETM");
  TABLE1.cellBackColRC(2, "Last name", "STD_man");
  TABLE1.cellBackColRC(3, "First name", "distsync_OK");
  TABLE1.cellBackColRC(3, "Last name", "distsync_NOK");
}
Figure 1. A Table with different Column Colors

Assignment

Table