System.Windows.Forms.ColumnHeader Members

The members of System.Windows.Forms.ColumnHeader are listed below.

See Also: Inherited members from System.ComponentModel.Component

Public Constructors

Initializes a new instance of the System.Windows.Forms.ColumnHeader class.

Initializes a new instance of the System.Windows.Forms.ColumnHeader class with the image specified.

Initializes a new instance of the System.Windows.Forms.ColumnHeader class with the image specified.

Public Properties

DisplayIndexint.

Gets or sets the display order of the column relative to the currently displayed columns.

ImageIndexint.

Gets or sets the index of the image displayed in the System.Windows.Forms.ColumnHeader.

ImageKeystring.

Gets or sets the key of the image displayed in the column.

[read-only]
ImageListImageList.

Gets the image list associated with the System.Windows.Forms.ColumnHeader.

[read-only]
Indexint.

Gets the location with the System.Windows.Forms.ListView control's System.Windows.Forms.ListView.ColumnHeaderCollection of this column.

[read-only]
ListViewListView.

Gets the System.Windows.Forms.ListView control the System.Windows.Forms.ColumnHeader is located in.

Namestring.

Gets or sets the name of the System.Windows.Forms.ColumnHeader.

Tagobject.

Gets or sets an object that contains data to associate with the System.Windows.Forms.ColumnHeader.

Textstring.

Gets or sets the text displayed in the column header.

TextAlignHorizontalAlignment.

Gets or sets the horizontal alignment of the text displayed in the System.Windows.Forms.ColumnHeader.

Widthint.

Gets or sets the width of the column.

Public Methods

AutoResize(ColumnHeaderAutoResizeStyle)

Resizes the width of the column as indicated by the resize style.

Clone() : object

Creates an identical copy of the current System.Windows.Forms.ColumnHeader that is not attached to any list view control.

override
ToString() : string

Returns a string representation of this column header.

Protected Methods

override
Dispose(bool)

Disposes of the resources (other than memory) used by the System.Windows.Forms.ColumnHeader.