ListView.ColumnHeaderCollection Methods
.NET Framework 4.5
The ListView.ColumnHeaderCollection type exposes the following members.
| Name | Description | |
|---|---|---|
|
Add(ColumnHeader) | Adds an existing ColumnHeader to the collection. |
|
Add(String) | Creates and adds a column with the specified text to the collection. |
|
Add(String, Int32) | Creates and adds a column with the specified text and width to the collection. |
|
Add(String, String) | Creates and adds a column with the specified text and key to the collection. |
|
Add(String, Int32, HorizontalAlignment) | Adds a column header to the collection with specified text, width, and alignment settings. |
|
Add(String, String, Int32) | Creates and adds a column with the specified text, key, and width to the collection. |
|
Add(String, String, Int32, HorizontalAlignment, Int32) | Creates and adds a column with the specified key, aligned text, width, and image index to the collection. |
|
Add(String, String, Int32, HorizontalAlignment, String) | Creates and adds a column with the specified key, aligned text, width, and image key to the collection. |
|
AddRange | Adds an array of column headers to the collection. |
|
Clear | Removes all column headers from the collection. |
|
Contains | Determines whether the specified column header is located in the collection. |
|
ContainsKey | Determines if a column with the specified key is contained in the collection. |
|
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetEnumerator | Returns an enumerator to use to iterate through the column header collection. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
IndexOf | Returns the index, within the collection, of the specified column header. |
|
IndexOfKey | Determines the index for a column with the specified key. |
|
Insert(Int32, String) | Creates a new column header with the specified text, and inserts the header into the collection at the specified index. |
|
Insert(Int32, ColumnHeader) | Inserts an existing column header into the collection at the specified index. |
|
Insert(Int32, String, Int32) | Creates a new column header with the specified text and initial width, and inserts the header into the collection at the specified index. |
|
Insert(Int32, String, String) | Creates a new column header with the specified text and key, and inserts the header into the collection at the specified index. |
|
Insert(Int32, String, Int32, HorizontalAlignment) | Creates a new column header and inserts it into the collection at the specified index. |
|
Insert(Int32, String, String, Int32) | Creates a new column header with the specified text, key, and width, and inserts the header into the collection at the specified index. |
|
Insert(Int32, String, String, Int32, HorizontalAlignment, Int32) | Creates a new column header with the specified aligned text, key, width, and image index, and inserts the header into the collection at the specified index. |
|
Insert(Int32, String, String, Int32, HorizontalAlignment, String) | Creates a new column header with the specified aligned text, key, width, and image key, and inserts the header into the collection at the specified index. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Remove | Removes the specified column header from the collection. |
|
RemoveAt | Removes the column header at the specified index within the collection. |
|
RemoveByKey | Removes the column with the specified key from the collection. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
AsParallel | Enables parallelization of a query. (Defined by ParallelEnumerable.) |
|
AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
|
Cast<TResult> | Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
|
OfType<TResult> | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
| Name | Description | |
|---|---|---|
|
ICollection.CopyTo | Infrastructure. Copies the ColumnHeader objects in the ListView.ColumnHeaderCollection to an array, starting at a particular array index. |
|
IList.Add | Infrastructure. Adds a ColumnHeader to the ListView. |
|
IList.Contains | Infrastructure. Determines whether the specified column header is located in the collection. |
|
IList.IndexOf | Infrastructure. Returns the index, within the collection, of the specified column header. |
|
IList.Insert | Infrastructure. Inserts an existing column header into the collection at the specified index. |
|
IList.Remove | Infrastructure. Removes the specified column header from the collection. |