Class ImageListView.ImageListViewColumnHeader
Represents a column header displayed in details view mode.
Inheritance
Implements
Namespace: Manina.Windows.Forms
Assembly: ImageListView.dll
Syntax
[TypeConverter(typeof(ImageListViewColumnHeaderTypeConverter))]
public class ImageListViewColumnHeader : ICloneable
Constructors
| Improve this Doc View SourceImageListViewColumnHeader()
Initializes a new instance of the ImageListViewColumnHeader class.
Declaration
public ImageListViewColumnHeader()
ImageListViewColumnHeader(ColumnType, Int32, Int32, Boolean)
Initializes a new instance of the ImageListViewColumnHeader class.
Declaration
public ImageListViewColumnHeader(ColumnType type, int width = 100, int displayIndex = -1, bool visible = true)
Parameters
Type | Name | Description |
---|---|---|
ColumnType | type | The type of data to display in this column. |
System.Int32 | width | Width in pixels of the column header. |
System.Int32 | displayIndex | Display order of the column. |
System.Boolean | visible | Whether the column is initially visible. |
ImageListViewColumnHeader(ColumnType, String, Int32, Int32, Boolean)
Initializes a new instance of the ImageListViewColumnHeader class.
Declaration
public ImageListViewColumnHeader(ColumnType type, string text, int width = 100, int displayIndex = -1, bool visible = true)
Parameters
Type | Name | Description |
---|---|---|
ColumnType | type | The type of data to display in this column. |
System.String | text | Text of the column header. |
System.Int32 | width | Width in pixels of the column header. |
System.Int32 | displayIndex | Display order of the column. |
System.Boolean | visible | Whether the column is initially visible. |
ImageListViewColumnHeader(ColumnType, String, String, Int32, Int32, Boolean)
Initializes a new instance of the ImageListViewColumnHeader class.
Declaration
public ImageListViewColumnHeader(ColumnType type, string key, string text, int width = 100, int displayIndex = -1, bool visible = true)
Parameters
Type | Name | Description |
---|---|---|
ColumnType | type | The type of data to display in this column. |
System.String | key | A unique key to associate this column with sub items. |
System.String | text | Text of the column header. |
System.Int32 | width | Width in pixels of the column header. |
System.Int32 | displayIndex | Display order of the column. |
System.Boolean | visible | Whether the column is initially visible. |
Properties
| Improve this Doc View SourceComparer
Gets or sets the comparer used while sorting items with this custom column.
Declaration
[Browsable(false)]
public IComparer<ImageListViewItem> Comparer { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IComparer<ImageListViewItem> |
DefaultText
Gets the default header text for this column type.
Declaration
[Browsable(false)]
public virtual string DefaultText { get; }
Property Value
Type | Description |
---|---|
System.String |
DisplayIndex
Gets or sets the display order of the column.
Declaration
[Browsable(true)]
public int DisplayIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Grouper
Gets or sets the grouper used while grouping items with this column.
Declaration
[Browsable(false)]
public ImageListView.IGrouper Grouper { get; set; }
Property Value
Type | Description |
---|---|
ImageListView.IGrouper |
ImageListView
Gets the ImageListView owning this item.
Declaration
[Browsable(false)]
public ImageListView ImageListView { get; }
Property Value
Type | Description |
---|---|
ImageListView |
Key
Gets a unique string to identify for this item.
Declaration
[Browsable(true)]
public string Key { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Text
Gets or sets the column header text.
Declaration
[Browsable(true)]
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Type
Gets or sets the type of information displayed by the column.
Declaration
[Browsable(true)]
public ColumnType Type { get; set; }
Property Value
Type | Description |
---|---|
ColumnType |
Visible
Gets or sets a value indicating whether the control is displayed.
Declaration
[Browsable(true)]
public bool Visible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Width
Gets or sets the column width.
Declaration
[Browsable(true)]
public int Width { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceAutoFit()
Resizes the width of the column based on the length of the column content.
Declaration
public void AutoFit()
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object | A new object that is a copy of this instance. |
ResetText()
Resets the column text to its default value.
Declaration
public void ResetText()
ShouldSerializeText()
Determines if the column text should be serialized.
Declaration
public bool ShouldSerializeText()
Returns
Type | Description |
---|---|
System.Boolean | true if the designer should serialize the property; otherwise false. |
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |