GridColumn.ImageAlignment Property
Gets or sets the column header image alignment.
Namespace: DevExpress.XtraGrid.Columns
Assembly: DevExpress.XtraGrid.v20.1.dll
NuGet Package: DevExpress.Win.Grid
Declaration
[Browsable(false)]
[DXCategory("Appearance")]
[DefaultValue(StringAlignment.Near)]
[XtraSerializableProperty]
public virtual StringAlignment ImageAlignment { get; set; }
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. |
Far | The image is right-aligned. |
Near | The image is left-aligned. |
Note: use the GridColumn.ImageIndex property to specify the image displayed within the column header.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ImageAlignment 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.