sheetex - v1.3.0
    Preparing search index...

    Interface Alignment

    对齐

    居中对齐

    const alignment = {
    horizontal: 'center',
    vertical: 'center',
    }
    interface Alignment {
        horizontal?:
            | "fill"
            | "center"
            | "left"
            | "right"
            | "justify"
            | "centerContinuous"
            | "distributed";
        vertical?: "center"
        | "top"
        | "bottom"
        | "justify"
        | "distributed";
        indent?: number;
        textRotation?: number;
        wrapText?: boolean;
        shrinkToFit?: boolean;
    }
    Index

    Properties

    horizontal?:
        | "fill"
        | "center"
        | "left"
        | "right"
        | "justify"
        | "centerContinuous"
        | "distributed"

    水平对齐

    可用值 含义
    left 水平居左
    center 水平居中
    right 水平居右
    fill 填充
    justified 两端对齐
    centerContinuous 跨列居中
    distributed 分散对齐
    vertical?: "center" | "top" | "bottom" | "justify" | "distributed"

    垂直对齐

    可用值 含义
    top 顶部对齐
    center 垂直居中
    bottom 底部对齐
    justified 两端对齐
    distributed 分散对齐
    indent?: number

    缩进,只有当水平对齐为居左、居右和分散对齐时才有效

    textRotation?: number

    文字旋转,旋转并不是连续的,0-90,90-180,180-255对应三套不同的规则,并且临界值在不同软件中可能有不同的行为

    范围 含义
    0 <= n <= 90 逆时针旋转,从为水平到垂直
    90 < n <= 180 顺时针旋转,从水平到垂直
    180 < n <= 255 特殊含义
    wrapText?: boolean

    自动换行

    shrinkToFit?: boolean

    缩小字体填充