Skip to main content

TcxCustomCanvas.Rectangle(TRect,TColor,TColor,TPenStyle,Integer) Method

Draws a rectangle on the canvas.

Declaration

procedure Rectangle(const R: TRect; ABrushColor: TColor; APenColor: TColor; APenStyle: TPenStyle = psSolid; APenWidth: Integer = 1); overload; virtual;

Parameters

Name Type
R TRect
ABrushColor TColor
APenColor TColor
APenStyle TPenStyle
APenWidth Integer

Remarks

Call this procedure and pass a target rectangle as the R parameter to draw it on the canvas. Use the APenColor, APenStyle, and PenWidth parameters to define an appearance of the resulting rectangle’s outline. The ABrushColor parameter specifies the fill color of the rectangle.

See Also