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

# TCanvas.Brush

The Brush used to paint on the Canvas.

## Declaration

Source position: graphics.pp line 1175

`published property TCanvas.Brush : TBrush read FLazBrush write SetLazBrush;`

## Description

Brush is a TBrush property with the tool used to paint the interior of filled shapes on the drawing surface. It has settings like Color and Style, but may also use a Bitmap to fill the interior of shapes.

Setting a new value for the property causes the handle for the Brush to be freed and re-created in the cached resources for the canvas.The values from the new Brush are assigned to the member variable for the property. The BrushChanged method is called to update the state flags for the canvas.

Use Pen to configure the tool used to draw lines and curves on the drawing surface.

Use Font to set the typeface, color, and style used to draw text on the drawing surface.

## See also

TCanvas.BrushChanging |  | Implements the OnChanging event handler for the Brush on the canvas.
TCanvas.Pen |  | The Pen to be used for writing in this canvas.
TCanvas.Font |  | Contains the Font used to render text on the drawing surface.
TBrush |  | The Brush to be used to Paint on the current Canvas.