SimpleButton.ImageToTextAlignment Property

Gets or sets how the button's image is aligned relative to the button's text.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[Browsable(false)]
[DefaultValue(ImageAlignToText.None)]
[DXCategory("Appearance")]
public virtual ImageAlignToText ImageToTextAlignment { get; set; }
<Browsable(False)>
<DefaultValue(ImageAlignToText.None)>
<DXCategory("Appearance")>
Public Overridable Property ImageToTextAlignment As ImageAlignToText

Property Value

Type Default Description
ImageAlignToText

None

An ImageAlignToText enumeration value that specifies how the button's image is aligned relative to the button's text.

Remarks

In addition to the button's text (see SimpleButton.Text), you can display an image in the button (see SimpleButton.Image). The ImageToTextAlignment property specifies how the button's image is aligned relative to the button's text. If this property is set to None, the image is aligned relative to the button itself rather then the button's text (see SimpleButton.ImageLocation);

If the button's image is aligned relative to the button's text, you can specify the indent between the image and text using the SimpleButton.ImageToTextIndent property.

The ImageToTextAlignment property is equivalent to the ImageOptions.ImageToTextAlignment property (see SimpleButton.ImageOptions).

See Also