LabelControl.ImageAlignToText Property

Gets or sets a value that specifies how the image is aligned relative to the label's text.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DefaultValue(ImageAlignToText.None)]
[DXCategory("Appearance")]
public ImageAlignToText ImageAlignToText { get; set; }
<DefaultValue(ImageAlignToText.None)>
<DXCategory("Appearance")>
Public Property ImageAlignToText As ImageAlignToText

Property Value

Type Default Description
ImageAlignToText

None

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

Remarks

Labels can display images. To specify an image use the label's appearance settings (LabelControl.Appearance). The ImageAlignToText property specifies how the image is aligned relative to the label's text.

To let the label's appearance settings control how the image is aligned within the label, set the ImageAlignToText property to the ImageAlignToText.None value. In this instance, the alignment of the image is specified by the LabelControlAppearanceObject.ImageAlign property of the label's appearance object.

See Also