TcxCustomCanvas.FrameRect(TRect,TdxAlphaColor,Integer,TcxBorders) Method
Draws a rectangular outline.
Declaration
procedure FrameRect(const R: TRect; AColor: TdxAlphaColor; ALineWidth: Integer = 1; ABorders: TcxBorders = cxBordersAll); overload; virtual;
Parameters
| Name | Type |
|---|---|
| R | TRect |
| AColor | TdxAlphaColor |
| ALineWidth | Integer |
| ABorders | TcxBorders |
Remarks
Call either of the overloaded procedure variants and pass a target rectangle as the R parameter to draw the rectangle on the canvas. Use the ALineWidth optional parameter to adjust the border width (in pixels). In addition, you can use the ABorders optional parameter to draw only specific borders.
Note
The second overloaded FrameRect procedure variant accepts a TdxAlphaColor value instead of TColor.
See Also