Back to Devexpress

BaseColumn.ImageAlignment Property

wpf-devexpress-dot-xpf-dot-grid-dot-basecolumn-aaf12b82.md

latest1.8 KB
Original Source

BaseColumn.ImageAlignment Property

Gets or sets image’s alignment. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public StringAlignment ImageAlignment { get; set; }
vb
Public Property ImageAlignment As StringAlignment

Property Value

TypeDescription
StringAlignment

The StringAlignment enumeration value.

|

Remarks

Set the ImageAlignment property to Far to show the header image on the right:

xaml
<dxg:GridColumn FieldName="CategoryName" Image="Image.png" ImageAlignment="Far">

If the ImageAlignment property is set to Center , the header image is shown at the center, but the header caption is not shown:

xaml
<dxg:GridColumn FieldName="CategoryName" Image="Image.png" ImageAlignment="Center">

See Also

BaseColumn Class

BaseColumn Members

DevExpress.Xpf.Grid Namespace