Enum WritingMode

java.lang.Object
java.lang.Enum<WritingMode>
com.itextpdf.layout.properties.WritingMode
All Implemented Interfaces:
Serializable, Comparable<WritingMode>, java.lang.constant.Constable

public enum WritingMode extends Enum<WritingMode>
Enum which defines values for WritingMode and defines the direction of a text.
  • Enum Constant Details

    • HORIZONTAL_TB

      public static final WritingMode HORIZONTAL_TB
      Lays out text horizontally, lines progression is from top to bottom.
    • VERTICAL_LR

      public static final WritingMode VERTICAL_LR
      Lays out text vertically, line progression is from left to right.
    • VERTICAL_RL

      public static final WritingMode VERTICAL_RL
      Lays out text vertically, line progression is from right to left.
  • Method Details

    • values

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

      public static WritingMode valueOf (String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null