BaseImageListBoxControl.GlyphAlignment Property

Specifies the alignment of the image displayed within the item.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.2.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(HorzAlignment.Near)]
public HorzAlignment GlyphAlignment { get; set; }
<DXCategory("Behavior")>
<DefaultValue(HorzAlignment.Near)>
Public Property GlyphAlignment As HorzAlignment

Property Value

Type Default Description
HorzAlignment

Near

A HorzAlignment enumeration member specifying the image alignment.

Remarks

The GlyphAlignment property specifies the image alignment within the item. All the horizontal alignment options available are listed in the table below.

Member Name

Description

Center

Centers the image within the item.

ImageListBoxControl_GlyphAlignment_Center

Default

Places the image to the left. If the RightToLeft property value is set to true, it places the image to the right.

ImageListBoxControl_GlyphAlignment_Near

Far

Places the image to the right. If the RightToLeft property value is set to true, it places the image to the left.

ImageListBoxControl_GlyphAlignment_Far

Near

Places the image to the left. If the RightToLeft property value is set to true, it places the image to the right.

ImageListBoxControl_GlyphAlignment_Near

Note: the text is not displayed within the item if the GlyphAlignment property value is set to HorzAlignment.Center. In this case, the item displays the image only and this is controlled by the ImageListBoxItem.ImageIndex property. If no image is specified, the item displays nothing.

See Also