IRange oRange=worksheet.Range["A1:A10"];
Range.CellStyle.Interior.FillPattern = ExcelPattern.Gradient;
for (int i = 0; i < oRange.Cells.Length;i++)
{
oRange.Cells[i].CellStyle.Interior.Gradient.ForeColorObject.SetTheme(8, workbook, 0.00003564789);
} |
worksheet.Range["B7"].CellStyle.Interior.FillPattern = ExcelPattern.Solid;
(worksheet.Range["B7"].CellStyle.Interior as InteriorWrapper).Wrapped.ColorObject.SetTheme(9, workbook, 0.39997558519241921);
worksheet.Range["B8"].CellStyle.Interior.FillPattern = ExcelPattern.Solid;
(worksheet.Range["B8"].CellStyle.Interior as InteriorWrapper).Wrapped.ColorObject.SetTheme(7, workbook, 0.59999389629810485);
worksheet.Range["B9"].CellStyle.Interior.FillPattern = ExcelPattern.Solid;
(worksheet.Range["B9"].CellStyle.Interior as InteriorWrapper).Wrapped.ColorObject.SetTheme(0, workbook, -0.14999847407452621);
worksheet.Range["B10"].CellStyle.Interior.FillPattern = ExcelPattern.Solid;
(worksheet.Range["B10"].CellStyle.Interior as InteriorWrapper).Wrapped.ColorObject.SetTheme(8, workbook, 0.59999389629810485); |
using Syncfusion.XlsIO.Implementation; |