Alignment (ColumnHeader)

This property returns and sets the alignment of text in a ColumnHeader object.

Syntax

columnheader.Alignment [= integer]

Parameters

columnheader
Object expression that evaluates to a ColumnHeader object.
integer
Integer that determines the alignment. The following table shows the settings for integer.
Constant
Value
Description
lvwColumnLeft 0 Left (default). Text is left-aligned.
lvwColumnRight 1 Right. Text is right-aligned.
lvwColumnCenter 2 Center. Text is centered.

Remarks

The first column in a ListView can only be left-aligned.