- Code: Select all
CellStyle cellStyle = workbook.Styles.Add('MyStyle');
cellStyle.Color = Color.FromArgb(220, 220, 220);
cellStyle.FillPattern = ExcelPatternType.Solid;
CellStyle clonedStyle = workbook.Styles["MyStyle"].clone();
The Color property of cellStyle and clonedStyle are not the same.
Am I wrong or is it a bug?