Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
A
Expand Minimize

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.

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.

Show:
© 2015 Microsoft