Skip to main content

TdxSpreadSheetDataAlignHorz Enum

Enumerates horizontal alignments of the cell contents.

Declaration

TdxSpreadSheetDataAlignHorz = (
    ssahGeneral,
    ssahLeft,
    ssahCenter,
    ssahRight,
    ssahFill,
    ssahJustify,
    ssahDistributed
);

Members

Name
ssahGeneral
ssahLeft
ssahCenter
ssahRight
ssahFill
ssahJustify
ssahDistributed

Remarks

Options include:

Value

Description

ssahGeneral

Aligns cell content according to its type. Text strings are aligned to the left, numeric values are aligned to the right, and logical values are centered.

ssahLeft

Aligns cell contents to the left side of a cell. The TdxSpreadSheetCellStyle.AlignHorzIndent property value, if specified, is in effect with this setting.

ssahCenter

Horizontally centers cell contents within a cell.

ssahRight

Aligns cell contents to the right side of a cell. The TdxSpreadSheetCellStyle.AlignHorzIndent property value, if specified, is in effect with this setting.

ssahFill

Aligns cell contents to the left but always displays it truncated at the right cell border if it does not fit into the cell.

ssahJustify

Justifies cell contents horizontally. A text within the cell is distributed evenly between the left and right cell bounds.

ssahDistributed

The cell content is distributed across the cell’s width, to line up with both the left and right sides. Unlike ssahJustify, the TdxSpreadSheetCellStyle.AlignHorzIndent value can be applied to both the right and left bounds of the cell.

The full range of possible cell content alignments (including both the AlignHorz and AlignVert property values) is shown in the image below.

See Also