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

SimpleButton.ImageToTextIndent Property

Gets or sets the ditance between the button’s image and text. This property is in effect if the button’s image is aligned relative to the text.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
[DefaultValue(-1)]
[DXCategory("Appearance")]
[EditorBrowsable(EditorBrowsableState.Never)]
public int ImageToTextIndent { get; set; }

#Property Value

Type Default Description
Int32 -1

An integer value that specifies the distance, in pixels, between the button’s image and text.

#Remarks

Use the SimpleButton.ImageOptions property to display an image in a button and specify image-related settings.

If the button’s image is aligned relative to the button’s text, the SimpleButton.ImageOptions.ImageToTextIndent property specifies the distance between the image and text.

See Also