Vcl.ExtCtrls.TShape.Brush
Delphi
property Brush: TBrush read FBrush write SetBrush;
C++
__property Vcl::Graphics::TBrush* Brush = {read=FBrush, write=SetBrush};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Vcl.ExtCtrls.pas Vcl.ExtCtrls.hpp |
Vcl.ExtCtrls | TShape |
Description
Specifies the color and pattern used for filling the shape control.
Brush is a TBrush object that represents the color and pattern that fill the interior of the shape. Use the properties and methods of TBrush to change the color or pattern of the shape object:
Shape1.Brush.Color := clWhite; Shape1->Brush->Color = clWhite;
Note: Setting the Brush property assigns the properties of another TBrush object to the shape's brush. The shape object does not take ownership of the assigned object.