using Infrastructure.Helpers.Excel.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Infrastructure.Helpers.Excel { public class ExcelConfig { /// /// 文件名 /// public string FileName { get; set; } /// /// 标题 /// public string Title { get; set; } /// /// 前景色 /// public System.Drawing.Color ForeColor { get; set; } /// /// 背景色 /// public System.Drawing.Color Background { get; set; } private short _titlepoint; /// /// 标题字号 /// public short TitlePoint { get { if (_titlepoint == 0) { return 20; } else { return _titlepoint; } } set { _titlepoint = value; } } private short _headpoint; /// /// 列头字号 /// public short HeadPoint { get { if (_headpoint == 0) { return 10; } else { return _headpoint; } } set { _headpoint = value; } } /// /// 标题高度 /// public short TitleHeight { get; set; } /// /// 列标题高度 /// public short HeadHeight { get; set; } private string _titlefont; /// /// 标题字体 /// public string TitleFont { get { if (_titlefont == null) { return "微软雅黑"; } else { return _titlefont; } } set { _titlefont = value; } } private string _headfont; /// /// 列头字体 /// public string HeadFont { get { if (_headfont == null) { return "微软雅黑"; } else { return _headfont; } } set { _headfont = value; } } /// /// 是否按内容长度来适应表格宽度 /// public bool IsAllSizeColumn { get; set; } /// /// 列设置 /// public List ColumnEntity { get; set; } } }