windowsforms-devexpress-dot-xtraeditors-dot-labelcontrol-ed7a162e.md
Gets or sets a value that specifies how the image is aligned relative to the label’s text.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(ImageAlignToText.None)]
[DXCategory("Appearance")]
public ImageAlignToText ImageAlignToText { get; set; }
<DefaultValue(ImageAlignToText.None)>
<DXCategory("Appearance")>
Public Property ImageAlignToText As ImageAlignToText
| Type | Default | Description |
|---|---|---|
| ImageAlignToText | None |
An ImageAlignToText value that specifies how the image is aligned relative to the label’s text.
|
Available values:
Show 13 items
| Name | Description |
|---|---|
| None |
The image isn’t aligned relative to the label’s text. The alignment of the image is specified by the label’s appearance settings.
| | LeftTop |
The image is horizontally aligned on the left and vertically aligned at the top.
| | LeftCenter |
The image is horizontally aligned on the left and vertically aligned at the center.
| | LeftBottom |
The image is horizontally aligned on the left and vertically aligned at the bottom.
| | RightTop |
The image is horizontally aligned on the right and vertically aligned at the top.
| | RightCenter |
The image is horizontally aligned on the right and vertically aligned at the center.
| | RightBottom |
The image is horizontally aligned on the right and vertically aligned at the bottom.
| | TopLeft |
The image is vertically aligned at the top, and horizontally aligned on the left.
| | TopCenter |
The image is vertically aligned at the top, and horizontally aligned at the center.
| | TopRight |
The image is vertically aligned at the top, and horizontally aligned on the right.
| | BottomLeft |
The image is vertically aligned at the bottom, and horizontally aligned on the left.
| | BottomCenter |
The image is vertically aligned at the bottom, and horizontally aligned at the center.
| | BottomRight |
The image is vertically aligned at the bottom, and horizontally aligned on the right.
|
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.
See Also