Vcl.Buttons.TSpeedButton.Margin

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

Delphi

property Margin: Integer read FMargin write SetMargin default -1;

C++

__property int Margin = {read=FMargin, write=SetMargin, default=-1};

プロパティ

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

説明

ボタンの表面に描画するイメージまたはテキストとボタンの端までとのピクセル数を指定します。

Margin プロパティは,Glyph プロパティで指定されたイメージまたは Caption プロパティで指定されたテキストのインデントを示します。Margin プロパティとその両端の関係は Layout プロパティによって決まります。Layout プロパティが blGlyphLeft ならば,マージンはイメージまたはキャプションの左端とボタンの端の間にあります。Layout が blGlyphRight ならば,マージンは右側にあります。Layout プロパティが blGlyphTop ならば,マージンは上側に,また Layout プロパティが blGlyphBottom ならば,マージンは下側にあります。

Margin プロパティが -1 ならば,イメージまたはテキストはボタンの中央に位置揃えされます。

関連項目