GridColumn.ImageAlignment Property

Gets or sets the column header image alignment.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[Browsable(false)]
[DXCategory("Appearance")]
[DefaultValue(StringAlignment.Near)]
[XtraSerializableProperty]
public virtual StringAlignment ImageAlignment { get; set; }
<Browsable(False)>
<DXCategory("Appearance")>
<DefaultValue(StringAlignment.Near)>
<XtraSerializableProperty>
Public Overridable Property ImageAlignment As StringAlignment

Property Value

Type Default Description
StringAlignment

Near

A System.Drawing.StringAlignment enumeration member specifying the image alignment.

Remarks

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.

GridBand_ImageAlignment_Center

Far

The image is right-aligned.

GridBand_ImageAlignment_Far

Near

The image is left-aligned.

GridBand_ImageAlignment_Near

Note: use the GridColumn.ImageIndex property to specify the image displayed within the column header.

See Also