TcxButtonImageOptions.Margin Property
Specifies the distance between the displayed glyph and the nearest button border (depending on the current Layout property value).
Declaration
property Margin: Integer read; write; default -1;
Property Value
| Type | Description |
|---|---|
| Integer | The base distance (in pixels at
|
Remarks
Use the Margin property to explicitly specify the distance between the displayed glyph and the nearest button border (depending on the current Layout property value).
Property Values and Scaling
The Margin property specifies the base line width that corresponds to 96 DPI. The parent TcxButton component applies the current scale factor to the Margin property value to calculate the actual button content margin.
Additional Layout-Related Options
Use the Layout property to switch between four predefined button content layouts (horizontal and vertical).
In addition, you can use the Spacing property to adjust the distance between the glyph and the caption regardless of the current Layout property value.
Default Value
The Margin property’s default value is -1.
The default Margin property value indicates that both the caption and glyph are centered within the button.