Alignment Property

Sets a value that determines the horizontal and vertical alignment of data within a cell.

Syntax

Public Property Alignment As TextAlignment

Applies To

Range Object

Data Type

Enumerated

The following settings are available:

Constant Value Description
LeftTop 0 The cell content is aligned left, top.
LeftCenter 1(Default) The cell content is aligned left, center.
LeftBottom 2 The cell content is aligned left, bottom.
CenterTop 3 The cell content is aligned center, top.
CenterCenter 4 The cell content is aligned center, center.
CenterBottom 5 The cell content is aligned center, bottom.
RightTop 6 The cell content is aligned right, top.
RightCenter 7 The cell content is aligned right, center.
RightBottom 8 The cell content is aligned right, bottom.

กก