using System.ComponentModel; using System.Drawing; namespace MLV; public class ManagedListViewColumn { private string text = ""; private string id = ""; private ManagedListViewSortMode sortMode = ManagedListViewSortMode.None; private int width = 60; private Color textColor = Color.Black; [Description("The column text that displayed.")] [Category("Text")] public string HeaderText { get { return text; } set { text = value; } } [Description("The column text color.")] [Category("Style")] public Color HeaderTextColor { get { return textColor; } set { textColor = value; } } [Description("The sort mode for this column.")] [Category("Misc")] public ManagedListViewSortMode SortMode { get { return sortMode; } set { sortMode = value; } } [Description("The id of this column. Must be used in subitems in order to disblay them under this column.")] [Category("Misc")] public string ID { get { return id; } set { id = value; } } [Description("The width in pixels")] [Category("Style")] public int Width { get { return width; } set { width = value; } } public ManagedListViewColumn Clone() { return new ManagedListViewColumn { HeaderText = HeaderText, HeaderTextColor = HeaderTextColor, ID = ID, SortMode = SortMode, Width = Width }; } }