using System.Collections.Generic; using System.Drawing; namespace learun.util { /// /// 版 本 EasyCode EC管理后台 /// Copyright (c) 2019-present EC管理有限公司 /// 创建人:tobin /// 日 期:2019.09.24 /// 描 述:Excel导入导出设置 /// public class ExcelConfig { /// /// 文件名 /// public string FileName { get; set; } /// /// 标题 /// public string Title { get; set; } /// /// 前景色 /// public Color ForeColor { get; set; } /// /// 背景色 /// public 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; } } }