"columnFormat"

Defines the text format of a specific table column.

Synopsis

setValue(string shape, "columnFormat", string column, string format);

getValue(string shape, "columnFormat", string column, string &format);

shape.columnFormat(string column, string format);

Parameters

Parameter Description
shape Name of the object
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 table column. The "cellFormatRC" attribute overwrites this attribute. For information about the composition of the format string see format string.

Example

main()
{
  TABLE1.appendLine("Name", "Smith");
  TABLE1.columnFormat("Name","[10s,,,ALIGNMENT_CENTER]");
}
Abbildung 1. Table and an Icon in a Column

Assignment

Table