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.Rectangle(TRect,TColor,TColor,TPenStyle,Integer) Method

Draws a rectangle on the canvas.

#Declaration

Delphi
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