using NPOI.SS.UserModel;

namespace YBEE.EQM.Application;

/// <summary>
/// 导出单元格样式
/// </summary>
public class ExportExcelCellStyle
{
    /// <summary>
    /// 标题字段
    /// </summary>
    public string TitleFontName { get; set; } = "黑体";
    /// <summary>
    /// 常规字段
    /// </summary>
    public string FontName { get; set; } = "宋体";
    /// <summary>
    /// 标题样式
    /// </summary>
    public ICellStyle TitleStyle { get; set; }
    /// <summary>
    /// 摘要样式
    /// </summary>
    public ICellStyle SummaryStyle { get; set; }
    /// <summary>
    /// 列头样式
    /// </summary>
    public ICellStyle ColumnHeaderStyle { get; set; }
    /// <summary>
    /// 居中对齐
    /// </summary>
    public ICellStyle CenterCellStyle { get; set; }
    /// <summary>
    /// 居左对齐
    /// </summary>
    public ICellStyle LeftCellStyle { get; set; }
    /// <summary>
    /// 居右对齐
    /// </summary>
    public ICellStyle RightCellStyle { get; set; }
    /// <summary>
    /// 填充样式
    /// </summary>
    public ICellStyle FillCellStyle { get; set; }

    /// <summary>
    /// 默认标题高度
    /// </summary>
    public static readonly short DefaultTitleHeight = 50 * 20;
    /// <summary>
    /// 默认行高
    /// </summary>
    public static readonly short DefaultRowHeight = 20 * 20;
}