ListView.ColumnHeaderCollection.IList.Add Method (Object)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Adds a ColumnHeader to the ListView.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

int IList.Add(
	object value
)

Parameters

value
Type: System.Object

The ColumnHeader to be added to the ListView.

Return Value

Type: System.Int32

The zero-based index indicating the location of the object that was added to the collection

Exception Condition
ArgumentException

value is not a ColumnHeader.

.NET Framework
Available since 1.1
Return to top
Show: