Back to Devexpress

TreeListColumn.ImageAlignment Property

windowsforms-devexpress-dot-xtratreelist-dot-columns-dot-treelistcolumn-67f254c5.md

latest2.8 KB
Original Source

TreeListColumn.ImageAlignment Property

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

Namespace : DevExpress.XtraTreeList.Columns

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

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

Property Value

TypeDefaultDescription
StringAlignmentNear

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

|

Remarks

The column header’s image is specified by the column’s TreeListColumn.ImageOptions property. The Alignment property specifies image alignment. 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.

| |

Far

|

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

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

| |

Near

|

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

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

|

See Also

ImageOptions

ColumnsImageList

TreeListColumn Class

TreeListColumn Members

DevExpress.XtraTreeList.Columns Namespace