[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IColorScaleCriterion.Index

Index Property

Index

Gets an integer value that indicates which threshold the criterion represents.

Use this property to identify whether the criterion corresponds to the minimum, midpoint, or maximum threshold in a color scale conditional format.

Declaration
int Index { get; }
ReadOnly Property Index As Integer
Examples
IColorScale colorScale = worksheet.Range["A1:A5"].FormatConditions
    .AddColorScale(ColorScaleType.ThreeColorScale);
IColorScaleCriterion criterion = colorScale.ColorScaleCriteria[1];
int index = criterion.Index;