[]
        
立即试用
(Showing Draft Content)

GradientStyle

Enum Class GradientStyle

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

public enum GradientStyle extends Enum<GradientStyle>
指定渐变填充的样式。
  • Enum Constant Details

    • Horizontal

      public static final GradientStyle Horizontal
      指定一个水平穿过形状的渐变。
    • Vertical

      public static final GradientStyle Vertical
      指定一个沿形状垂直向下运行的渐变。
    • DiagonalUp

      public static final GradientStyle DiagonalUp
      指定一个对角线渐变,从底部角落向上延伸到对面的角落。
    • DiagonalDown

      public static final GradientStyle DiagonalDown
      指定一个从顶部角落向下到对角角落的斜向渐变。
    • FromCorner

      public static final GradientStyle FromCorner
      指定一个从一角到另外三个角的渐变。
    • FromTitle

      public static final GradientStyle FromTitle
      指定从标题向外运行的渐变。
    • FromCenter

      public static final GradientStyle FromCenter
      指定从中心向外角渐变的颜色。
    • Mixed

      public static final GradientStyle Mixed
      梯度是混合的。
  • Method Details

    • values

      public static GradientStyle[] 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 GradientStyle 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