windowsforms-devexpress-dot-xtragrid-dot-columns-dot-gridcolumn-e88718f1.md
Use the Alignment setting of the GridColumn.ImageOptions property to get or set column header image alignment.
Namespace : DevExpress.XtraGrid.Columns
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
[Browsable(false)]
[DefaultValue(StringAlignment.Near)]
[DXCategory("Appearance")]
[EditorBrowsable(EditorBrowsableState.Never)]
[XtraSerializableProperty]
public virtual StringAlignment ImageAlignment { get; set; }
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
<DXCategory("Appearance")>
<DefaultValue(StringAlignment.Near)>
<XtraSerializableProperty>
Public Overridable Property ImageAlignment As StringAlignment
| Type | Default | Description |
|---|---|---|
| StringAlignment | Near |
A System.Drawing.StringAlignment enumeration member that specifies the image alignment.
|
The ImageAlignment property provides the following image alignment options:
|
Member Name
|
Description
| | --- | --- | |
Center
|
The image is centered. The header text is not displayed in this case.
| |
Far
|
The image is right-aligned.
| |
Near
|
The image is left-aligned.
|
Note : Use the GridColumn.ImageOptions.ImageIndex property to specify the image displayed within the column header.
See Also