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

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;
}
}
}