"gridColor"

Sets or gets the grid color of a table or trend grid at runtime.

Synopsis

shape.gridColor (string colorString);

string colorString = shape.gridColor;

Parameters

Parameter Description
colorString A WinCC OA color string such as blue "{0,0,255}".

Return value

A WinCC OA color string

Description

Sets or gets the grid color of a table or trend at runtime.

Example

The following example sets the grid color of the table to STD_on (green).

main()
{
  TABLE1.gridColor("STD_on");
}
Figure 1. Table and Grid Color SET TO "STD_ON" (Green)

This example gets the grid color of the trend "MY_TREND".

Example

main()
{
  string gCol;
  gCol= MY_TREND.gridColor;
  DebugN(gCol);
}

Assignment

Table, Trend