There is a chart:
I want to programmatically change the color of the first column to green, so that the result will be:
I tried different ways:
ChartObject chartObject = sheet.ChartObjects(@"Диаграмма1"); Excel.Series ser = (Excel.Series)chartObject.Chart.SeriesCollection(1); ser.Format.Line.ForeColor.RGB = (int)Excel.XlRgbColor.rgbGreen; ser.Format.Line.BackColor.RGB = (int)Excel.XlRgbColor.rgbGreen; ser.Format.Shadow.ForeColor.RGB = (int)Excel.XlRgbColor.rgbGreen; ser.Format.Fill.BackColor.RGB = (int)Excel.XlRgbColor.rgbGreen; But, as you can see, I can only change the color of the contour. What to do?


