Skip to main content

TcxCustomCanvas.Polyline(TPoint[],TColor,Integer,TPenStyle) Method

Draws a polyline on the canvas.

Declaration

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