ExportExcelColDto.cs 572 B

12345678910111213141516171819202122232425
  1. namespace YBEE.EQM.Application;
  2. /// <summary>
  3. /// 导出列定义
  4. /// </summary>
  5. /// <typeparam name="T"></typeparam>
  6. public class ExportExcelColDto<T>
  7. {
  8. /// <summary>
  9. /// 名称
  10. /// </summary>
  11. public string Name { get; set; }
  12. /// <summary>
  13. /// 宽度
  14. /// </summary>
  15. public int? Width { get; set; }
  16. /// <summary>
  17. /// 水平对齐方式
  18. /// </summary>
  19. public ExportExcelCellAlign? Align { get; set; }
  20. /// <summary>
  21. /// 获取单元格值
  22. /// </summary>
  23. public Func<T, object> GetCellValue { get; set; }
  24. }