ListViewItem.ListViewSubItemCollection

Wisej.Web.ListViewItem ListViewSubItemCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (2.5.0.0)

Represents the collection of subitems in a ListViewSubItem item.

public class ListViewSubItemCollection : IList, ICollection, IEnumerable, IList<ListViewSubItem>, ICollection<ListViewSubItem>, IEnumerable<ListViewSubItem>

Properties

Int32: Returns the total number of subitems in the collection.

Boolean: Returns a value indicating whether the collection is read-only.

ListViewSubItem: Returns or sets the subitem at the specified index in the collection.

Throws:

ListViewSubItem: Returns the subitem with the specified key from the collection.

Methods

Adds a new subitem with the specified label text to the end of the current collection.

ParameterTypeDescription

text

Returns: ListViewSubItem. A ListViewSubItem that represents the item being added to the collection.

Adds a new subitem to the collection with the specified text, foreground color, background color, and font settings.

ParameterTypeDescription

text

The text to display for the subitem.

foreColor

backColor

font

Returns: ListViewSubItem. The ListViewSubItem that was added to the collection.

Adds a previously created subitem to the end of the collection.

ParameterTypeDescription

item

Returns: ListViewSubItem. A ListViewSubItem that represents the item being added to the collection.

Throws:

Creates new subitems based on an array of strings and adds them to the collection.

ParameterTypeDescription

items

An array of strings representing the text of each subitem to add to the collection.

Creates new subitems based on an array of strings and adds them to the collection with the specified foreground color, background color, and font.

ParameterTypeDescription

items

An array of strings representing the text of each subitem to add to the collection.

foreColor

backColor

font

Adds an array of previously created subitems to the collection.

ParameterTypeDescription

items

Throws:

Removes all ListViewSubItem instances from the collection.

Removes all ListViewSubItem instances from the collection and optionally disposes them.

ParameterTypeDescription

dispose

Indicates whether the removed items should be disposed.

Determines whether the specified subitem is a member of the collection.

ParameterTypeDescription

item

Returns: Boolean. true if the ListViewSubItem is a member of the collection; otherwise, false.

Determines whether the collection contains a subitem with the specified key.

ParameterTypeDescription

key

Returns: Boolean. true to indicate the collection contains a ListViewSubItem with the specified key; otherwise, false.

Copies the entire collection into an existing array at a specified location within the array.

ParameterTypeDescription

dest

The destination array.

index

The index in the destination array at which storing begins.

Returns an enumerator that can be used to iterate through the collection.

Returns: IEnumerator<ListViewSubItem>. An IEnumerator that represents the ListViewSubItemCollection.

Returns the index of the specified subitem in the collection.

ParameterTypeDescription

subitem

Returns: Int32. The zero-based index of the item found in the ListViewSubItemCollection; otherwise, -1.

Returns the index of the first occurrence of a subitem with the specified key.

ParameterTypeDescription

key

Returns: Int32. The zero-based index of the first occurrence of a ListViewSubItem with the specified key, if found; otherwise, -1.

Inserts an existing ListViewSubItem into the collection at the specified location.

ParameterTypeDescription

index

The indexed location within the collection to insert the subitem.

item

Returns: ListViewSubItem. The ListViewSubItem that was inserted in the collection.

Throws:

Creates a new subitem with the specified text and inserts it at the specified index.

ParameterTypeDescription

index

text

Returns: ListViewSubItem. The ListViewSubItem that was inserted in the collection.

Creates a new subitem with the specified text and key, and inserts it into the collection.

ParameterTypeDescription

index

key

text

Returns: ListViewSubItem. The ListViewSubItem that was inserted in the collection.

Removes the specified subitem from the collection.

ParameterTypeDescription

item

Removes a subitem from the collection at a specified index.

ParameterTypeDescription

index

Removes the subitem with the specified key from the collection.

ParameterTypeDescription

key

Events

CollectionChangeEventHandler Fired when the collection changes.

Last updated