You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
139 lines
2.1 KiB
139 lines
2.1 KiB
3 years ago
|
using System.Collections.Generic;
|
||
|
using System.Drawing;
|
||
|
|
||
|
namespace learun.util
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 版 本 EasyCode EC管理后台
|
||
|
/// Copyright (c) 2019-present EC管理有限公司
|
||
|
/// 创建人:tobin
|
||
|
/// 日 期:2019.09.24
|
||
|
/// 描 述:Excel导入导出设置
|
||
|
/// </summary>
|
||
|
public class ExcelConfig
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 文件名
|
||
|
/// </summary>
|
||
|
public string FileName { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 标题
|
||
|
/// </summary>
|
||
|
public string Title { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 前景色
|
||
|
/// </summary>
|
||
|
public Color ForeColor { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 背景色
|
||
|
/// </summary>
|
||
|
public Color Background { get; set; }
|
||
|
|
||
|
private short _titlepoint;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 标题字号
|
||
|
/// </summary>
|
||
|
public short TitlePoint
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
if (_titlepoint == 0)
|
||
|
{
|
||
|
return 20;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
return _titlepoint;
|
||
|
}
|
||
|
}
|
||
|
set { _titlepoint = value; }
|
||
|
}
|
||
|
|
||
|
private short _headpoint;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 列头字号
|
||
|
/// </summary>
|
||
|
public short HeadPoint
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
if (_headpoint == 0)
|
||
|
{
|
||
|
return 10;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
return _headpoint;
|
||
|
}
|
||
|
}
|
||
|
set { _headpoint = value; }
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 标题高度
|
||
|
/// </summary>
|
||
|
public short TitleHeight { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 列标题高度
|
||
|
/// </summary>
|
||
|
public short HeadHeight { get; set; }
|
||
|
|
||
|
private string _titlefont;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 标题字体
|
||
|
/// </summary>
|
||
|
public string TitleFont
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
if (_titlefont == null)
|
||
|
{
|
||
|
return "微软雅黑";
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
return _titlefont;
|
||
|
}
|
||
|
}
|
||
|
set { _titlefont = value; }
|
||
|
}
|
||
|
|
||
|
private string _headfont;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 列头字体
|
||
|
/// </summary>
|
||
|
public string HeadFont
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
if (_headfont == null)
|
||
|
{
|
||
|
return "微软雅黑";
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
return _headfont;
|
||
|
}
|
||
|
}
|
||
|
set { _headfont = value; }
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 是否按内容长度来适应表格宽度
|
||
|
/// </summary>
|
||
|
public bool IsAllSizeColumn { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 列设置
|
||
|
/// </summary>
|
||
|
public List<ColumnModel> ColumnEntity { get; set; }
|
||
|
}
|
||
|
}
|