using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace UserControlLib
|
|
{
|
|
public class ViewHeader:IComparable
|
|
{
|
|
/// <summary>
|
|
/// 列排序
|
|
/// </summary>
|
|
public int Index { get; set; }
|
|
|
|
/// <summary>
|
|
/// 列显示名称
|
|
/// </summary>
|
|
public string Text { get; set; }
|
|
|
|
/// <summary>
|
|
/// 列名
|
|
/// </summary>
|
|
public string Name { get; set; }
|
|
|
|
public int Width { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否为值字段
|
|
/// </summary>
|
|
public int HeaderType { get; set; }
|
|
|
|
public int CompareTo(object obj)
|
|
{
|
|
ViewHeader header = (ViewHeader)obj;
|
|
return this.Index-header.Index;
|
|
}
|
|
}
|
|
}
|