Visual Basic: Windows Controls

Visual Studio 6.0

Alignment Property (ColumnHeader Object)

See Also    Example    Applies To

Returns or sets the alignment of text in a ColumnHeader object.


object.Alignment [= integer]

The Alignment Property syntax has these parts:

Part Description
object An object expression that evaluates to a ColumnHeader object.
integer An integer that determines the alignment, as described in Settings.


The settings for integer are:

Constant Value Description
lvwColumnLeft 0 (Default) Left. Text is aligned left.
lvwColumnRight 1 Right. Text is aligned right.
lvwColumnCenter 2 Center. Text is centered.