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.

39 lines
846 B

3 years ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace UserControlLib
  7. {
  8. public class ViewHeader:IComparable
  9. {
  10. /// <summary>
  11. /// 列排序
  12. /// </summary>
  13. public int Index { get; set; }
  14. /// <summary>
  15. /// 列显示名称
  16. /// </summary>
  17. public string Text { get; set; }
  18. /// <summary>
  19. /// 列名
  20. /// </summary>
  21. public string Name { get; set; }
  22. public int Width { get; set; }
  23. /// <summary>
  24. /// 是否为值字段
  25. /// </summary>
  26. public int HeaderType { get; set; }
  27. public int CompareTo(object obj)
  28. {
  29. ViewHeader header = (ViewHeader)obj;
  30. return this.Index-header.Index;
  31. }
  32. }
  33. }