[]
Represents special color index values available for color index properties of borders, fonts, or fills.
Use 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.
public enum ColorDataIndex
Public Enum ColorDataIndex
IRange cell = worksheet.Range["A1"];
cell.Value = "ColorDataIndex example";
cell.Interior.Pattern = Pattern.Solid;
cell.Interior.PatternColorIndex = (int)ColorDataIndex.Automatic;
ColorDataIndex patternColorIndex =
(ColorDataIndex)cell.Interior.PatternColorIndex;
| Name | Description |
|---|---|
| Automatic | Specifies an automatic color. |
| None | Indicates that the target color is not set or has no color. |