public static IChart SetLabelsColors(this IChart chart, SpreadsheetGear.Color color) { for (int i = 0; i < chart.SeriesCollection.Count; i++) { chart.SeriesCollection[i].HasDataLabels = true; chart.SeriesCollection[i].DataLabels.Font.Color = color; } return(chart); }
public static IRange SetFontColor(this IRange range, SpreadsheetGear.Color color) { range.Font.Color = color; return(range); }