/// <summary> /// Initializes a new instance of the ImageListViewColumnHeader class. /// </summary> /// <param name="type">The type of data to display in this column.</param> /// <param name="text">Text of the column header.</param> /// <param name="width">Width in pixels of the column header.</param> public ImageListViewColumnHeader(ColumnType type, string text, int width) { mImageListView = null; owner = null; mText = text; mType = type; mWidth = width; mVisible = true; mDisplayIndex = -1; }
/// <summary> /// Initializes a new instance of the ImageListViewColumnHeader class. /// </summary> /// <param name="type">The type of data to display in this column.</param> /// <param name="text">Text of the column header.</param> /// <param name="width">Width in pixels of the column header.</param> /// <param name="displayIndex">Display order of the column.</param> /// <param name="visible">Whether the column is initially visible.</param> public ImageListViewColumnHeader(ColumnType type, string text, int width, int displayIndex, bool visible) { mImageListView = null; owner = null; mGuid = Guid.NewGuid(); mText = text; mType = type; mWidth = width; mVisible = visible; mDisplayIndex = displayIndex; }
/// <summary> /// Initializes a new instance of the ImageListViewColumnHeader class. /// </summary> /// <param name="type">The type of data to display in this column.</param> /// <param name="key">A unique key to associate this column with sub items.</param> /// <param name="text">Text of the column header.</param> /// <param name="width">Width in pixels of the column header.</param> /// <param name="displayIndex">Display order of the column.</param> /// <param name="visible">Whether the column is initially visible.</param> public ImageListViewColumnHeader(ColumnType type, string key, string text, int width = ImageListView.DefaultColumnWidth, int displayIndex = -1, bool visible = true) { mImageListView = null; owner = null; mGuid = Guid.NewGuid(); Comparer = null; Grouper = null; mType = type; mKey = key; mText = text; mWidth = width; mDisplayIndex = displayIndex; mVisible = visible; }