Skip to main content
Pie
ra0

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

TcxCanvas.Polygon(TPoint[]) Method

Draws a polygon on the canvas.

#Declaration

Delphi
procedure Polygon(const Points: array of TPoint); reintroduce; overload;

#Parameters

Name Type
Points TPoint

#Remarks

Call either of the overloaded procedure variants and pass an array of points as the P parameter to draw a closed multi-angled shape formed by these points. The Polygon procedures always connect the last point and the first point to close the resulting polygon.

While the first overloaded Polygon procedure variant uses the active brush and pen settings, the second variant accepts the fill and outline colors as the ABrushColor and APenColor parameters.

Note

A second procedure variant call uses the specified colors to update the active brush and pen settings. In addition, the Brush.Style property value changes to bsSolid.

See Also