using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyCode.Project.Infrastructure.Exports
{
///
/// 电子表格的表头设置(支持多行表头设置)
///
public class NpoiHeadCfg
{
///
/// 表头格式设置(支持多行表头)
///
public NpoiHeadCfg()
{
}
///
/// 重载构造函数
///
/// 数据源列名
/// 电子表格列名
/// 行高
/// 列宽
public NpoiHeadCfg(string FieldName, string FieldLable, int Width = 10, int Height = 13)
{
this.FieldName = FieldName;
this.FieldLable = FieldLable;
this.Height = Height;
this.Width = Width;
this.IsBold = true;
}
///
/// 字段名称
///
public string FieldName { get; set; }
///
/// 字段标签(表格行头标题)
///
public string FieldLable { get; set; }
///
/// 高度
///
public int Height { get; set; }
///
/// 宽度
///
public int Width { get; set; }
///
/// 背景颜色
///
public string BackColor { get; set; }
///
/// 文本颜色
///
public string FontColor { get; set; }
///
/// 是否粗体显示
///
public bool IsBold { get; set; }
///
/// 开始列索引,从0开始
///
public int StartColIndex { get; set; }
///
/// 开始行索引,从0开始
///
public int StartRowIndex { get; set; }
///
/// 结束列索引,0则与startColIndex相等
///
public int EndColIndex { get; set; }
///
/// 结束行索引,0则与startRowIndex相等
///
public int EndRowIndex { get; set; }
}
}