Back to Devexpress

GridBand.ImageAlignment Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-bandedgrid-dot-gridband-992bffe5.md

latest2.7 KB
Original Source

GridBand.ImageAlignment Property

Use the Alignment option accessible in GridBand.ImageOptions to specify band header image alignment.

Namespace : DevExpress.XtraGrid.Views.BandedGrid

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
[DefaultValue(StringAlignment.Near)]
[DXCategory("Appearance")]
[EditorBrowsable(EditorBrowsableState.Never)]
[XtraSerializableProperty]
public StringAlignment ImageAlignment { get; set; }
vb
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
<DXCategory("Appearance")>
<DefaultValue(StringAlignment.Near)>
<XtraSerializableProperty>
Public Property ImageAlignment As StringAlignment

Property Value

TypeDefaultDescription
StringAlignmentNear

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

|

Remarks

An image displayed within the band header can be aligned horizontally only. All available alignment options are listed in the table below.

|

Member Name

|

Description

| | --- | --- | |

Center

|

Centers the image within the band header.

| |

Far

|

Places the image to the right.

| |

Near

|

Places the image to the left.

|

Note: the band header’s caption text is not displayed when the ImageAlignment property is set to StringAlignment.Center.

See Also

ImageOptions

GridBand Class

GridBand Members

DevExpress.XtraGrid.Views.BandedGrid Namespace