Displays a single column header in a ListView control.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Gets a value indicating whether the component can raise an event.(Inherited from Component.)
Gets or sets the display order of the column relative to the currently displayed columns.
Gets or sets the index of the image displayed in the.
Gets or sets the key of the image displayed in the column.
Gets the image list associated with the.
Gets the ListView control the is located in.
Gets or sets the name of the.
Gets or sets an object that contains data to associate with the.
Gets or sets the text displayed in the column header.
Gets or sets the horizontal alignment of the text displayed in the.
Gets or sets the width of the column.
Resizes the width of the column as indicated by the resize style.
Creates an identical copy of the currentthat is not attached to any list view control.
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.)
Disposes of the resources (other than memory) used by the Component.Dispose(Boolean).).(Overrides
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)
Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)
A column header is an item in a ListView control that contains heading text. objects can be added to a ListView using the Add method of the ListView.ColumnHeaderCollection class. To add a group of columns to a ListView, you can use the AddRange method of the ListView.ColumnHeaderCollection class. You can use the Index property of the class to determine where the is located in the ListView.ColumnHeaderCollection.
Text and TextAlign properties to set the text displayed in the control and the alignment of the text in the column header. To determine whether a is associated with a ListView control, you can reference the ListView property. If you want to copy a for use in another ListView control, you can use the Clone method.provides the
The following code example demonstrates initializing a ListView control. The example creates objects and sets the column header's Text, TextAlign and Width properties. The example also adds items and subitems to the ListView. To run this example paste the following code in a form and call the PopulateListView method from the form's constructor or Load event handler.
Available since 1.1
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.