[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Graphics' (#lcl)

TBrush.Color

The Color of the current Brush.

Declaration

Source position: graphics.pp line 753

published property TBrush.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

TBrush.Style

  

Indicates the pattern drawn using the brush.

TBrush.Bitmap

  

Bitmap with the pattern for the Brush.

TBrush.Reference

  

Contains a Reference to the handle allocated for the Brush.

TBrush.Handle

  

Operating System handle for the brush.


Version 3.2 Generated 2024-02-25 Home