com.alibaba.excel.enums.poi

枚举 VerticalAlignmentEnum

    • 枚举常量概要

      枚举常量  
      枚举常量和说明
      BOTTOM
      The vertical alignment is aligned-to-bottom.
      CENTER
      The vertical alignment is centered across the height of the cell.
      DEFAULT
      null
      DISTRIBUTED
      When text direction is horizontal: the vertical alignment of lines of text is distributed vertically, where each line of text inside the cell is evenly distributed across the height of the cell, with flush top When text direction is vertical: behaves exactly as distributed horizontal alignment.
      JUSTIFY
      When text direction is horizontal: the vertical alignment of lines of text is distributed vertically, where each line of text inside the cell is evenly distributed across the height of the cell, with flush top and bottom margins.
      TOP
      The vertical alignment is aligned-to-top.
    • 枚举常量详细资料

      • CENTER

        public static final VerticalAlignmentEnum CENTER
        The vertical alignment is centered across the height of the cell.
      • BOTTOM

        public static final VerticalAlignmentEnum BOTTOM
        The vertical alignment is aligned-to-bottom. (typically the default value)
      • JUSTIFY

        public static final VerticalAlignmentEnum JUSTIFY

        When text direction is horizontal: the vertical alignment of lines of text is distributed vertically, where each line of text inside the cell is evenly distributed across the height of the cell, with flush top and bottom margins.

        When text direction is vertical: similar behavior as horizontal justification. The alignment is justified (flush top and bottom in this case). For each line of text, each line of the wrapped text in a cell is aligned to the top and bottom (except the last line). If no single line of text wraps in the cell, then the text is not justified.

      • DISTRIBUTED

        public static final VerticalAlignmentEnum DISTRIBUTED

        When text direction is horizontal: the vertical alignment of lines of text is distributed vertically, where each line of text inside the cell is evenly distributed across the height of the cell, with flush top

        When text direction is vertical: behaves exactly as distributed horizontal alignment. The first words in a line of text (appearing at the top of the cell) are flush with the top edge of the cell, and the last words of a line of text are flush with the bottom edge of the cell, and the line of text is distributed evenly from top to bottom.

    • 方法详细资料

      • values

        public static VerticalAlignmentEnum[] values()
        按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:
        for (VerticalAlignmentEnum c : VerticalAlignmentEnum.values())
            System.out.println(c);
        
        返回:
        按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
      • valueOf

        public static VerticalAlignmentEnum valueOf(String name)
        返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符 完全匹配。(不允许有多余 的空格字符。)
        参数:
        name - 要返回的枚举常量的名称。
        返回:
        返回带有指定名称的枚举常量
        抛出:
        IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
        NullPointerException - 如果参数为空值

Copyright © 2018–2021 Alibaba Group. All rights reserved.