TTeeCanvas.Rectangle

TTeeCanvas.Rectangle
TTeeCanvas

procedure Rectangle(Const R: TRect); overload;

Unit
TeCanvas

Description
Use Rectangle to draw a rectangle using Pen and fill it with Brush. Specify the rectangle’s coordinates by giving four coordinates that define the upper left corner at the point (X1, Y1) and the lower right corner at the point (X2, Y2).

To fill a rectangular region without drawing the boundary in the current pen, use FillRect. To draw a rectangle with rounded corners, use RoundRect.