Alignment Property

Returns or sets a value that determines the horizontal and vertical alignment of data within a cell.

Syntax

object.Alignment [= AlignmentConstants]

Applies To

Column Object

Data Type

Enumerated

The following settings are available:

Constant Value Description
flexAlignLeftTop 0 The cell content is aligned left, top.
flexAlignLeftCenter 1(Default) The cell content is aligned left, center.
flexAlignLeftBottom 2 The cell content is aligned left, bottom.
flexAlignCenterTop 3 The cell content is aligned center, top.
flexAlignCenterCenter 4 The cell content is aligned center, center.
flexAlignCenterBottom 5 The cell content is aligned center, bottom.
flexAlignRightTop 6 The cell content is aligned right, top.
flexAlignRightCenter 7 The cell content is aligned right, center.
flexAlignRightBottom 8 The cell content is aligned right, bottom.