[]
Serializable, Comparable<GradientFillType>, Constable使用此枚举可以区分无渐变填充、线性渐变和路径渐变。线性渐变沿一条线过渡颜色,而路径渐变在由其边界设置定义的矩形路径内过渡颜色。
GradientFillType fillType = GradientFillType.valueOf("Linear");
if (fillType == GradientFillType.Linear) {
worksheet.getRange("A1").setValue("Linear gradient fill");
}
Enum.EnumDesc<E extends Enum<E>>static GradientFillTypestatic GradientFillType[]values()在路径渐变填充中,从一种颜色到下一种颜色的过渡边界是由渐变填充的 top、bottom、left 和 right 属性定义的矩形。
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum class has no constant with the specified nameNullPointerException - if the argument is null