"cellForeColRC"

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

Synopsis

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

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

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

Parameters

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

Description

This attribute can be used to access the foreground color for a specific cell defined by the column and row.

Example

The text in the first cell of the "Customer List" column and the text in the first cell of the "Last name" column are shown in red.

main()
{
  TABLE1.cellForeColRC(0,"Customer List", "red");
  TABLE1.cellForeColRC(0,"Last name", "red");
}
Abbildung 1. Table and the Cell Color of the two first Columns set to red

Assignment

Table