public ExcelColumn() { HeaderStyle = new ExcelCellStyle { BackgroundColor = "#DDDDDD", BorderWidth = 1, BorderColor = "#aaaaaa" }; GroupingStyle = new ExcelCellStyle { BackgroundColor = "#777777", ForeColor = "#ffffff", Bold = true, Alignment = ExcelExporter.HorizentalAlignment.Center }; RowStyle = new ExcelCellStyle(); }
internal ExcelCellStyle OverrideWith(ExcelCellStyle overrideStyle) { var result = new ExcelCellStyle(); result.Settings = new Dictionary <string, string>(Settings); foreach (var setting in overrideStyle.Settings) { result.Settings[setting.Key] = setting.Value; } return(result); }
/// <summary> /// Initializes a new instance of the <see cref="ExcelCell"/> class. /// </summary> public ExcelCell() { Style = new ExcelCellStyle(); }