Alignment Property (ColumnHeader Object)

           

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

Syntax

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.

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.