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

BaseImageListBoxControl.GlyphAlignment Property

Specifies the alignment of the image displayed within the item.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(HorzAlignment.Near)]
[DXCategory("Behavior")]
public HorzAlignment GlyphAlignment { get; set; }

#Property Value

Type Default Description
HorzAlignment Near

A HorzAlignment enumeration member specifying the image alignment.

Available values:

Name Description
Default

Places an object or text at the default position, which is determined by a control.

Near

Places an object/text at a near position.

Center

Centers an object or text within a region.

Far

Places an object/text at a far position.

#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. If no image is specified, the item displays nothing.

See Also