[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ICascadeSparkLine.ColorPositive

ColorPositive Property

ColorPositive

Returns the color of the first or last positive sparkline box.

This color is used for a box whose point value is positive. The default value is "#8CBF64".

Declaration
string ColorPositive { get; }
ReadOnly Property ColorPositive As String
Examples
worksheet.Range["A2:B4"].Value = new object[,] {
    {"Salary", 3500},
    {"Bonus", 1200},
    {"Expense", -800}
};
worksheet.Range["C2"].Formula = "=CASCADESPARKLINE(B2:B4,1,A2:A4,,,\"#8CBF64\",\"#D6604D\",FALSE)";
ICascadeSparkLine sparkLine = (ICascadeSparkLine) worksheet.Range["C2"].Value;
string color = sparkLine.ColorPositive;