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();
 }
예제 #2
0
        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);
        }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExcelCell"/> class.
 /// </summary>
 public ExcelCell()
 {
     Style = new ExcelCellStyle();
 }