Vcl.ExtCtrls.TShape.Brush

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

property Brush: TBrush read FBrush write SetBrush;

C++

__property Vcl::Graphics::TBrush* Brush = {read=FBrush, write=SetBrush};

プロパティ

種類 可視性 ソース ユニット
property published
Vcl.ExtCtrls.pas
Vcl.ExtCtrls.hpp
Vcl.ExtCtrls TShape

説明

図形コントロールを塗りつぶすのに使用する色と模様を指定します。

Brush は,図形の内部を塗りつぶす色および模様を表す,TBrush オブジェクトです。TBrush のプロパティおよびメソッドを使用すると,図形オブジェクトの色や模様を変更できます。

Shape1.Brush.Color := clWhite; Shape1->Brush->Color = clWhite;

メモ:  Brush プロパティを設定すると,別の TBrush オブジェクトのプロパティが図形のブラシに割り当てられます。図形オブジェクトは割り当てられたオブジェクトの所有権を取得しません。

関連項目