All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

LayoutControlItemImageOptions.Alignment Property

Gets or sets how the alignment of the icon in the item's label.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v20.2.dll

Declaration

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

Property Value

Type Default Description
ContentAlignment

MiddleLeft

A value that specifies the alignment of the icon in the item's label.

Property Paths

You can access this nested property as listed below:

Object Type Path to Alignment
LayoutViewField
.ImageOptions.Alignment
LayoutControlItem
.ImageOptions.Alignment
LayoutRepositoryItem
.ImageOptions.Alignment
SimpleLabelItem
.ImageOptions.Alignment
SimpleLabelItem
.ImageOptions.Alignment
SplitterItem
.ImageOptions.Alignment

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.

    This property is equivalent to the layout item's Image property.

  • ImageIndex — specifies an index of an image in the Images collection.

    The ImageIndex option is equivalent to the layout item's ImageIndex property. The Images option is equivalent to the layout item's Images and ItemImages properties, and the LayoutControl's Images or the LayoutView's Images property depending on the owner control.

  • Alignment — specifies the alignment of the image in the label.

    This property is equivalent to the layout item's ImageAlignment property.

  • ImageToTextDistance — specifies the distance between the label's text and icon.

    This property is equivalent to the layout item's ImageToTextDistance property.

  • AllowGlyphSkinning — specifies whether the icon is filled with the label's foreground color. This property overrides the parent group's AllowGlyphSkinning and the owner control's AllowGlyphSkinning options.

    LayoutControlItem - Glyph Skinning

    This property is equivalent to the layout item's AllowGlyphSkinning property.

    TIP

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

See Also