[]
Serializable, Comparable<ColorDataIndex>, ConstableUse this enum to apply built-in color index meanings instead of a palette-based numeric index. For example, Automatic specifies automatic color, and None indicates that the target color is not set or has no color.
IRange cell = worksheet.getRange("A1");
cell.setValue("ColorDataIndex example");
cell.getInterior().setPattern(Pattern.Solid);
cell.getInterior().setPatternColorIndex(ColorDataIndex.Automatic.getValue());
ColorDataIndex patternColorIndex =
ColorDataIndex.forValue(cell.getInterior().getPatternColorIndex());
Enum.EnumDesc<E extends Enum<E>>static ColorDataIndexforValue(int value) intgetValue()static ColorDataIndexstatic ColorDataIndex[]values()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 nullvalue - The integer value of the color data index.ColorDataIndex enum constant associated with the specified value.IllegalArgumentException - if value does not match a defined color data index.