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

LayoutControlItem.ImageAlignment Property

Gets or sets the alignment of the icon in the label.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
[DefaultValue(ContentAlignment.MiddleLeft)]
[DXCategory("Appearance")]
[EditorBrowsable(EditorBrowsableState.Never)]
[XtraSerializableProperty]
public virtual ContentAlignment ImageAlignment { get; set; }

#Property Value

Type Default Description
ContentAlignment MiddleLeft

A ContentAlignment enumeration value that specifies the alignment of the icon in the label.

#Remarks

Use the ImageOptions property to access the following options, which allow you to specify the icon in the layout item’s label:

SvgImage
Specifies a vector image.
ImageUri
Specifies a universal resource identifier of an image in the DX Image Gallery.
Image
Specifies a raster image.
ImageIndex
Specifies an index of an image in the Images collection.
Alignment
Specifies the alignment of the image in the label.
ImageToTextDistance
Specifies the distance between the label’s text and icon.
AllowGlyphSkinning

Specifies whether the icon is filled with the label’s foreground color. This property overrides AllowGlyphSkinning options specified at the level of the parent group/owner control.

LayoutControlItem - Glyph Skinning

Tip

We recommend using gray-scale icons from the DX Image Gallery for best visual results.

See Also