Vcl.Buttons.TBitBtn.Margin

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

Type Visibility Source Unit Parent
property published
Vcl.Buttons.pas
Vcl.Buttons.hpp
Vcl.Buttons TBitBtn

Description

Specifies the number of pixels between the edge of the image (specified in the Glyph property) and the edge of the button.

The margin is the space between the image edge and the button edge. The format of the edges depends on the layout of the image and text (specified in the Layout property). For example, if Layout is blGlyphLeft, the margin appears between the left edge of the image and the left edge of the button. If Margin is 3, three pixels separate the image and the button edges. If Margin is 0, there is no space between the image and the button edges.

If Margin is -1 (the default value), the image and text (specified in the Caption property) are centered. The number of pixels between the image and button edge is equal to the number of pixels between the opposite edge of the button and the text.

See Also