[]
        
立即试用
(Showing Draft Content)

GradientFillType

Enum Class GradientFillType

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

public enum GradientFillType extends Enum<GradientFillType>
指定正在使用的渐变填充类型,是线性还是路径。
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    指定此渐变填充为线性渐变类型。线性渐变类型意味着从一种颜色过渡到另一种颜色是沿着一条线进行的。
    指定无渐变填充。
    指定此渐变填充为路径渐变类型。路径渐变类型意味着从一种颜色过渡到另一种颜色的边界是一个矩形,该矩形由gradientFill元素上的top、bottom、left和right属性定义。
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • None

      public static final GradientFillType None
      指定无渐变填充。
    • Linear

      public static final GradientFillType Linear
      指定此渐变填充为线性渐变类型。线性渐变类型意味着从一种颜色过渡到另一种颜色是沿着一条线进行的。
    • Path

      public static final GradientFillType Path
      指定此渐变填充为路径渐变类型。路径渐变类型意味着从一种颜色过渡到另一种颜色的边界是一个矩形,该矩形由gradientFill元素上的top、bottom、left和right属性定义。
  • Method Details

    • values

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