"cellFormatRC"

Defines the text format of a specific row and column in a table.

Synopsis

setValue(string shape, "cellFormatRC", int row, string column, string format);

getValue(string shape, "cellFormatRC", int row, string column, string &format);

shape.cellFormatRC(int row, string column, string format)

Parameters

Parameter Description
shape Name of the object
row Row number
column Column name
format

The format, e.g. "[0.2f,False,False,ALIGNMENT_BEGINNING,False]". The entry of the format as an empty string deletes the format

To pass the format use the formatSelector() function.

Description

Defines the text format of a specific row and column in a table. This function overwrites the "columnFormat" attribute.

For information about the composition of the format string see format string.

Example

The following example shows firstly how to write a text into a table cell and at next how to set the text format.

main()
{
  TABLE1.appendLine("Customer List", "Martin");
  TABLE1.cellFormatRC(1,"Customer List","[10s,,,ALIGNMENT_CENTER]");
}
Figure 1. Table and text format set for the Column "Customer List" in the Cell 2

Assignment

Table