[]
        
立即试用
(Showing Draft Content)

TextDirection

Enum Class TextDirection

java.lang.Object
java.lang.Enum<TextDirection>
com.grapecity.documents.excel.drawing.TextDirection
All Implemented Interfaces:
Serializable, Comparable<TextDirection>, Constable

public enum TextDirection extends Enum<TextDirection>
指定文本方向。
  • Enum Constant Details

    • Horizontal

      public static final TextDirection Horizontal
      水平文本方向。
    • Vertical

      public static final TextDirection Vertical
      垂直文本方向。
    • Rotate90

      public static final TextDirection Rotate90
      将文本旋转90度。
    • Rotate270

      public static final TextDirection Rotate270
      将文本旋转270度角。
    • Stacked

      public static final TextDirection Stacked
      堆叠的文字,其阅读顺序是从左到右。
    • StackedRtl

      public static final TextDirection StackedRtl
      堆叠的文本,文本阅读顺序是从右到左。
  • Method Details

    • values

      public static TextDirection[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TextDirection valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
    • forValue

      public static TextDirection forValue(int value)