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.Polyline(TPoint[],TColor,Integer,TPenStyle) Method

Draws a polyline on the canvas.

#Declaration

Delphi
procedure Polyline(const P: array of TPoint; AColor: TColor; APenWidth: Integer = 1; APenStyle: TPenStyle = psSolid); overload; virtual;

#Parameters

Name Type
P TPoint
AColor TColor
APenWidth Integer
APenStyle TPenStyle

#Remarks

Call this procedure and pass an array of points as the P parameter to draw a series of interconnected line segments across these points. If an accepted array consists of two points, the Polyline procedure draws a single straight line like the Line procedure does. Use the AColor parameter to define the resulting line’s color.

See Also