Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

Draws a polygon on the canvas.

#Declaration

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

#Parameters

Name Type
P TPoint
ABrushColor TColor
APenColor TColor

#Remarks

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