Alignment

You can determine how the contents are aligned in a cell or in a group of cells.

You can set the horizontal alignment of contents for a cell or the vertical alignment of contents for a cell. The HorizontalAlignment and VerticalAlignment properties determine the alignment of the cell's content (that is, the text).

 

cell-align-labeled

 

 

Horizontal Alignment

Sets the horizontal alignment of contents for a cell

Member

Description

General

Aligns the cell contents according to the cell's interpretation of the contents

Left

Aligns the cell contents to the left

Center

Centers the contents in the cell horizontally

Right

Aligns the cell contents to the right

Justify

Indicates the text is inserted some whitespaces to make the text fill the special area.

Distributed

Indicates the text is inserted some whitespaces to make the text fill the special area.

 

 

Vertical Alignment

Specifies the vertical alignment of the cell contents

Member

Description

General

Aligns the cell contents according to the cell's interpretation of the contents

Top

Aligns the cell contents to the top

Center

Centers the contents in the cell vertically

Bottom

Aligns the cell contents to the bottom

Justify

Indicates the text is inserted some whitespaces to make the text fill the special area.

Distributed

Indicates the text is inserted some whitespaces to make the text fill the special area.