Show / Hide Table of Contents

Class ImageListView.ImageListViewColumnHeader

Represents a column header displayed in details view mode.

Inheritance
System.Object
ImageListView.ImageListViewColumnHeader
Implements
System.ICloneable
Namespace: Manina.Windows.Forms
Assembly: ImageListView.dll
Syntax
[TypeConverter(typeof(ImageListViewColumnHeaderTypeConverter))]
public class ImageListViewColumnHeader : ICloneable

Constructors

| Improve this Doc View Source

ImageListViewColumnHeader()

Initializes a new instance of the ImageListViewColumnHeader class.

Declaration
public ImageListViewColumnHeader()
| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

Comparer

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>
| Improve this Doc View Source

DefaultText

Gets the default header text for this column type.

Declaration
[Browsable(false)]
public virtual string DefaultText { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

DisplayIndex

Gets or sets the display order of the column.

Declaration
[Browsable(true)]
public int DisplayIndex { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

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
| Improve this Doc View Source

ImageListView

Gets the ImageListView owning this item.

Declaration
[Browsable(false)]
public ImageListView ImageListView { get; }
Property Value
Type Description
ImageListView
| Improve this Doc View Source

Key

Gets a unique string to identify for this item.

Declaration
[Browsable(true)]
public string Key { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Text

Gets or sets the column header text.

Declaration
[Browsable(true)]
public string Text { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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 Source

AutoFit()

Resizes the width of the column based on the length of the column content.

Declaration
public void AutoFit()
| Improve this Doc View Source

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.

| Improve this Doc View Source

ResetText()

Resets the column text to its default value.

Declaration
public void ResetText()
| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

Overrides
System.Object.ToString()

Implements

System.ICloneable
Back to top Copyright © 2018 Özgür Özçıtak