Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxButtonImageOptions.Margin Property

Specifies the space between the button image and the closest button edge, in pixels.

#Declaration

Delphi
property Margin: Integer read; write; default -1;

#Property Value

Type
Integer

#Remarks

The closest button edge is determined based on the Layout property value. For instance, if the Layout property is set to blGlyphLeft, the closest edge is the button’s left edge, and so on.

The following table illustrates samples of the Margin property.

Layout Margin
blGlyphLeft
blGlyphTop

Setting the Margin property to the default value (-1) centers the button’s caption and image within the button.

The default value of the Margin property is -1.

See Also