TcxCanvas.FillRect(TRect,TcxViewParams,Boolean) Method
Draws a filled rectangle.
Declaration
procedure FillRect(const R: TRect; const AParams: TcxViewParams; AExcludeRect: Boolean = False); overload;
Parameters
Name | Type |
---|---|
R | TRect |
AParams | TcxViewParams |
AExcludeRect | Boolean |
Remarks
Call any of the three overloaded FillRect procedure variants and pass a rectangle as the R parameter to draw the filled rectangle on the canvas. The filled area includes the top and left sides of the target rectangle but excludes the bottom and right sides.
Overloaded Variant | Description |
---|---|
1 | This procedure variant accepts a TColor value (AColor), updates the Brush.Color property of the underlying canvas and fills the target rectangle with this non-transparent color. The FillRect procedure uses the current brush color if you pass clDefault as the AColor parameter. The procedure does nothing when accepting clNone instead of a color. |
2 | This variant fills the target rectangle with a bitmap within an image container passed as the optional ABitmap parameter. The FillRect procedure uses the current brush settings if the parameter is omitted. Additionally, you can pass True as the optional AExcludeRect parameter to exclude the target rectangle from the clip region. |
3 | This variant accepts a single TcxViewParams value as the AParams parameter to define the brush setting for the target rectangle. This variant assigns the AParams.Color value to the Brush.Color property of the underlying canvas, and passes the AParams.Bitmap and AExcludeRect values as the ABitmap and AExcludeRect parameters of the second FillRect procedure variant. |
See Also