Returns or sets a value that determines the horizontal and vertical alignment of data within the specified cell.
Public Property Alignment As TextAlignment
Cell Object
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. |
กก