ListView.ColumnHeaderCollection
Wisej.Web.ListView ColumnHeaderCollection
Last updated
Wisej.Web.ListView ColumnHeaderCollection
Last updated
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.2.0.0)
Represents the collection of column headers in a ListView control.
Initializes a new instance of the ColumnHeaderCollection class.
Int32: Returns the number of items in the collection.
Boolean: Returns whether the collection is read-only.
ColumnHeader: Returns the column header at the specified index within the collection.
Throws:
ArgumentOutOfRangeException index is less than 0 or greater than or equal to the value of the Count property of the ColumnHeaderCollection.
ColumnHeader: Returns the column header with the specified key from the collection.
Adds a column header to the collection with specified text, width, and alignment settings.
Returns: ColumnHeader. The ColumnHeader that was created and added to the collection.
Adds an existing ColumnHeader to the collection.
Returns: Int32. The zero-based index into the collection where the item was added.
Creates and adds a column with the specified text to the collection.
Returns: ColumnHeader. The ColumnHeader with the specified text that was added to the ColumnHeaderCollection.
Creates and adds a column with the specified text and width to the collection.
Returns: ColumnHeader. The ColumnHeader with the specified text and width that was added to the ColumnHeaderCollection.
Creates and adds a column with the specified text and key to the collection.
Returns: ColumnHeader. The ColumnHeader with the specified key and text that was added to the ColumnHeaderCollection.
Creates and adds a column with the specified text, key, and width to the collection.
Returns: ColumnHeader. The ColumnHeader with the given text, key, and width that was added to the collection.
Creates and adds a column with the specified key, aligned text, width, and image key to the collection.
Returns: ColumnHeader. The ColumnHeader with the specified key, aligned text, width, and image key that has been added to the collection.
Creates and adds a column with the specified key, aligned text, width, and image index to the collection.
Returns: ColumnHeader. The ColumnHeader with the specified key, aligned text, width, and image index that has been added to the collection.
Adds an array of column headers to the collection.
Removes all column headers from the collection.
Removes all column headers from the collection and optionally disposes them.
Determines whether the specified header is located in the collection.
Returns: Boolean. true if the header is contained in the collection; otherwise, false.
Determines if a header with the specified key is contained in the collection.
Returns: Boolean. true if a header with the specified name is contained in the collection; otherwise, false.
Returns an enumerator to use to iterate through the column header collection.
Returns: IEnumerator. An IEnumerator that represents the column header collection.
Returns the index, within the collection, of the specified header.
Returns: Int32. The zero-based index of the header's location in the collection. If the header is not located in the collection, the return value is -1.
Determines the index for a header with the specified key.
Returns: Int32. The zero-based index for the first occurrence of the column with the specified name, if found; otherwise, -1.
Inserts an existing header into the collection at the specified index.
Throws:
ArgumentOutOfRangeException index is less than 0 or greater than or equal to the value of the Count property of the ColumnHeaderCollection.
Creates a new column header and inserts it into the collection at the specified index.
width
The initial width of the header. Set to -1 to autosize the header to the size of the largest subitem text in the column or -2 to autosize the header to the size of the text of the header.
Throws:
ArgumentOutOfRangeException index is less than 0 or greater than or equal to the value of the Count property of the ColumnHeaderCollection.
Creates a new column with the specified text, and inserts the header into the collection at the specified index.
Throws:
ArgumentOutOfRangeException index is less than 0 or greater than or equal to the value of the Count property of the ColumnHeaderCollection.
Creates a new header with the specified text and initial width, and inserts the header into the collection at the specified index.
Creates a new header with the specified text and key, and inserts the header into the collection at the specified index.
Creates a new column with the specified text, key, and width, and inserts the header into the collection at the specified index.
Creates a new header with the specified aligned text, key, width, and image key, and inserts the header into the collection at the specified index.
Creates a new header with the specified aligned text, key, width, and image index, and inserts the header into the collection at the specified index.
Removes the specified header from the collection.
Removes the header at the specified index within the collection.
Throws:
ArgumentOutOfRangeException index is less than 0 or greater than or equal to the value of the Count property of the ColumnHeaderCollection.
Removes the header with the specified key from the collection.
CollectionChangeEventHandler Fired when the collection changes.