setPolygonColor()
The function sets the color of a polygon of the Maps EWO.
Synopsis
bool setPolygonColor(int polygonId, string fillColor, string lineColor, int layerId = 1)
Parameter
Parameter | Description |
---|---|
polygonId | Polygon number |
fillColor | Static WinCC OA color which is used to fill the polygon |
lineColor | Static WinCC OA color for the outline of the polygon |
layerId | Layer number of polygon. Default: 1 |
Description
This function is used to change the fill color of a specified polygon as well as the line color of its border. The line color remains unchanged when only the fill color is given. It returns false in case of an error.
Assignment
See also
addPolygon(), appendPolygonInnerBoundaries(), centerOnPolygon(), getPolygonColor(), getPolygonFillPattern(), getPolygonInnerBoundaries(), getPolygonLineType(), getPolygonLineWidth(), getPolygonOuterBoundaries(), getPolygons(), polygonExists(), removePolygon(), setPolygonFillPattern(), setPolygonLineType(), setPolygonLineWidth(), setPolygonOuterBoundaries()