Interface ICellAlignment

interface ICellAlignment {
    horizontal: HorizontalAlignment;
    indent: number;
    isICellAlignment: true;
    justifyLastLine: boolean;
    overflow: TextOverflow;
    readingDirection: ReadingDirection;
    relativeIndent: number;
    rotation: number;
    stacked: boolean;
    vertical: VerticalAlignment;
    toJSON(): Partial<{
        horizontal: string;
        indent: string | number;
        justifyLastLine: string | Partial<boolean>;
        overflow: string;
        readingDirection: string;
        relativeIndent: string | number;
        rotation: string | number;
        stacked: string | Partial<boolean>;
        vertical: string;
    }>;
}

Hierarchy

Properties

Types of horizontal alignment

indent: number

An integer value, where an increment of 1 represents 3 spaces. Indicates the number of spaces (of the normal style font) of indentation for text in a cell.

Remarks

Note - This is only applied for alignments: left, right, and distributed

isICellAlignment: true
justifyLastLine: boolean

If the cells justified or distributed alignment should be used on the last line of text. (This is typical for East Asian alignments but not typical in other contexts.)

overflow: TextOverflow

The behavior for text that does not fit with the cell bounds.

readingDirection: ReadingDirection

The direction the cell is being read

relativeIndent: number

Indicates additional number of spaces of indentation to adjust for text in a cell.

rotation: number

Rotation of the text.

Default Value

0
stacked: boolean

If the text should stack vertically instead of horizontally.

Types of horizontal alignment

Methods

  • Returns Partial<{
        horizontal: string;
        indent: string | number;
        justifyLastLine: string | Partial<boolean>;
        overflow: string;
        readingDirection: string;
        relativeIndent: string | number;
        rotation: string | number;
        stacked: string | Partial<boolean>;
        vertical: string;
    }>