[]
        
(Showing Draft Content)

LabelAlignment

Enum Class LabelAlignment

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

public enum LabelAlignment extends Enum<LabelAlignment>
Specifies the cell label position.
  • Enum Constant Details

    • topLeft

      public static final LabelAlignment topLeft
      Indicates that the cell label position is top-left.
    • topCenter

      public static final LabelAlignment topCenter
      Indicates that the cell label position is top-center.
    • topRight

      public static final LabelAlignment topRight
      Indicates that the cell label position is top-right.
    • bottomLeft

      public static final LabelAlignment bottomLeft
      Indicates that the cell label position is bottom-left.
    • bottomCenter

      public static final LabelAlignment bottomCenter
      Indicates that the cell label position is bottom-center.
    • bottomRight

      public static final LabelAlignment bottomRight
      Indicates that the cell label position is bottom-right.
  • Method Details

    • values

      public static LabelAlignment[] 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 LabelAlignment 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()
    • getLabelAlignment

      public static LabelAlignment getLabelAlignment(int value)
      Returns the label position associated with the specified integer value.
      Parameters:
      value - The integer value representing the label position.
      Returns:
      The LabelAlignment enum constant associated with the specified value, or null if no match is found.