RepositoryItemImageComboBox.GlyphAlignment Property

Gets or sets the alignment of item images.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

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

Property Value

Type Default Description
HorzAlignment

Near

The HorzAlignment value that specifies the alignment of item images.

Remarks

Use the ImageComboBoxItem.ImageIndex property to assign an image to an item. The GlyphAlignment property specifies the image alignment.

HorzAlignment value

Image

HorzAlignment.Near

ImageComboBox_GlyphAlign_Near

HorzAlignment.Center

ImageComboBox_GlyphAlign_Center

The edit box does not display the selected item's text. Item images are left-aligned in the dropdown.

HorzAlignment.Far

ImageComboBox_GlyphAlign_Far

If the image is aligned at the center, the item caption (see ImageComboBoxItem.Description) is hidden in the edit box. However, if the ImageComboBoxEdit control is used to edit a column in a Grid, Vertical Grid, Tree List, or Search Lookup Editor control, the Find Panel still finds the hidden captions.

See Also