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.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
[DefaultValue(ImageAlignToText.None)]
[DXCategory("Appearance")]
public ImageAlignToText ImageAlignToText { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Image |
None | An Image |
Available values:
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. |
Left |
The image is horizontally aligned on the left and vertically aligned at the top. |
Left |
The image is horizontally aligned on the left and vertically aligned at the center. |
Left |
The image is horizontally aligned on the left and vertically aligned at the bottom. |
Right |
The image is horizontally aligned on the right and vertically aligned at the top. |
Right |
The image is horizontally aligned on the right and vertically aligned at the center. |
Right |
The image is horizontally aligned on the right and vertically aligned at the bottom. |
Top |
The image is vertically aligned at the top, and horizontally aligned on the left. |
Top |
The image is vertically aligned at the top, and horizontally aligned at the center. |
Top |
The image is vertically aligned at the top, and horizontally aligned on the right. |
Bottom |
The image is vertically aligned at the bottom, and horizontally aligned on the left. |
Bottom |
The image is vertically aligned at the bottom, and horizontally aligned at the center. |
Bottom |
The image is vertically aligned at the bottom, and horizontally aligned on the right. |
#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.