Skip to main content

TcxCustomCanvas.Polygon(TPoint[],TColor,TColor) Method

Draws a polygon on the canvas.


procedure Polygon(const P: array of TPoint; ABrushColor: TColor; APenColor: TColor); overload; virtual;


Name Type
P TPoint
ABrushColor TColor
APenColor TColor


Call this procedure and pass an array of points as the P parameter to draw a closed multi-angled shape formed by these points. The Polygon procedure always connects the last point and the first point to close the resulting polygon. Use the ABrushColor and APenColor parameters to define the fill and outline colors of the polygon.

See Also