[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ColorDataIndex

ColorDataIndex Enum

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.

Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public enum ColorDataIndex
Public Enum ColorDataIndex
Examples
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;

Fields

Name Description
Automatic

Specifies an automatic color.

None

Indicates that the target color is not set or has no color.