[]
Gets an IFormatColor object that you can use to set the color of the associated sparkline marker or horizontal axis.
Use the returned object to configure the color for the associated sparkline point marker or horizontal axis.
IFormatColor Color { get; }
ReadOnly Property Color As IFormatColor
worksheet.Range["A1:C4"].Value = new object[,] {
{1, 2, 3},
{4, 5, 6},
{7, 6, 5},
{4, 3, 2}
};
worksheet.Range["D1:D4"].SparklineGroups.Add(SparkType.Line, "A1:C4");
ISparklineGroup sparklineGroup = worksheet.Range["D1"].SparklineGroups[0];
IFormatColor color = sparklineGroup.Points.Markers.Color;
color.Color = Color.Red;