setLineColor()

The function changes the color of a line of the Maps EWO.

Synopsis

bool setLineColor(int lineId, string lineColor, int layerId = 1)

Parameter

Parameter Description
line number of the line whose color should be changed
lineColor static WinCC OA color
layerId layer number of line. Default: 1

Description

This function is used to change the color of a specified line. It returns false in case of an error.

Assignment

Maps Widget

See also

addLine(), addPointToLine(), centerOnLine(), getLineColor(), getLinePoints(), getLines(), getLineType(), getLineWidth(), lineExists(), removeLine(), setLineType(), setLineWidth()