Sign in Join
FPDoc Onlineexperiment

TBrush.Color property

Member of TBrushpublishedIn unit Graphics

The Color of the current Brush.

Declaration

pascal
property Color: TColor read FColor write SetColor default clWhite;

Description

Color is a TColor property with the color used to draw the brush pattern indicated in the Style property. It is the background or fill color when Style contains bsSolid. Color is not used when Style is set to bsClear; in fact, the brush style in TFPCustomBrush ancestor is actually set to bsSolid.

Setting a new value for the property causes an existing brush handle in Reference to be freed, and the pattern image in Bitmap is discarded.

The default value for the property is clWhite. The default property value is restored when a new value is assigned to the Bitmap property.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.