Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ListView.ColumnHeaderCollection Methods

The ListView.ColumnHeaderCollection type exposes the following members.

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