RepositoryItemImageComboBox.GlyphAlignment Property
Gets or sets the alignment of item images.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v18.2.dll
Declaration
[DXCategory("Behavior")]
[DefaultValue(HorzAlignment.Near)]
public virtual HorzAlignment GlyphAlignment { get; set; }
Property Value
Type | Default | Description |
---|---|---|
HorzAlignment | **Near** | The HorzAlignment value specifying the alignment of item images. |
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 following table demonstrates the item image alignments you can select with the GlyphAlignment property.
The HorzAlignment value | Image |
---|---|
The edit box does not display the selected item’s text. Item images are left-aligned in the dropdown. | |
To specify an item’s image, use the ImageComboBoxItem.ImageIndex property.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the GlyphAlignment property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.