Skip to main content

TreeListColumn.ImageAlignment Property

Gets or sets the alignment of the column header’s image.

Namespace: DevExpress.XtraTreeList.Columns

Assembly: DevExpress.XtraTreeList.v24.1.dll

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

Declaration

[Browsable(false)]
[DefaultValue(StringAlignment.Near)]
[EditorBrowsable(EditorBrowsableState.Never)]
[XtraSerializableProperty]
public StringAlignment ImageAlignment { get; set; }

Property Value

Type Default Description
StringAlignment Near

A StringAlignment enumeration member which specifies the image’s alignment.

Remarks

The column header’s image is specified by the column’s TreeListColumn.ImageIndex or TreeListColumn.Image property. The ImageAlignment property allows the image’s alignment to be specified. It provides the following image alignment options:

Member Name

Description

Center

The image is centered. The header’s caption is not displayed in this case.

TreeListColumn_ImageAlignment_Center

Far

The image is right-aligned in the left-to-right layout.

TreeListColumn_ImageAlignment_Far

In the right-to-left layout, the image is left-aligned.

Near

The image is left-aligned in the left-to-right layout.

TreeListColumn_ImageAlignment_Near

In the right-to-left layout, the image is right-aligned.

See Also