RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TShape.Brush Property

Specifies the color and pattern used for filling the shape control.

Pascal
property Brush: TBrush;
C++
__property TBrush Brush;

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.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!