ListView.ListViewItemCollection
Wisej.Web.ListView ListViewItemCollection
Last updated
Wisej.Web.ListView ListViewItemCollection
Last updated
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.2.0.0)
Represents the collection of items in a ListView control.
Int32: Returns the total number of items in the collection.
Boolean: Returns a value indicating whether the collection is read-only.
ListViewItem: Returns or sets the item at the specified index in the collection.
Throws:
ArgumentOutOfRangeException The index value is less than 0 or is greater than the number of items in the collection.
ListViewItem: Returns the item with the specified key from the collection.
Adds a new item with the specified label text to the end of the current collection.
Parameter | Type | Description |
---|---|---|
text |
Returns: ListViewItem. A ListViewItem that represents the item being added to the collection.
Creates a new item with the specified key and text, and adds it to the collection.
Parameter | Type | Description |
---|---|---|
key | ||
text |
Returns: ListViewItem. The ListViewItem that was added to the collection.
Creates a new item with the specified key, text, and image, and adds it to the collection.
Parameter | Type | Description |
---|---|---|
key | ||
text | ||
imageIndex |
Returns: ListViewItem. The ListViewItem that was added to the collection.
Creates a new item with the specified key, text, and image, and adds it to the collection.
Parameter | Type | Description |
---|---|---|
key | The name of the item. | |
text | ||
imageKey |
Returns: ListViewItem. The ListViewItem that was added to the collection.
Adds a previously created item to the end of the collection.
Parameter | Type | Description |
---|---|---|
item |
Returns: Int32. The zero-based index value of the ListViewItem added to the collection.
Throws:
ArgumentException The item is currently assigned to another ListView.
Adds an array of previously created items to the collection.
Parameter | Type | Description |
---|---|---|
items |
Throws:
ArgumentNullException items is null.
ArgumentException items is the child of another ListViewItem.
Removes all items from the collection.
Removes all items from the collection and optionally disposes them.
Parameter | Type | Description |
---|---|---|
dispose | Indicates whether the removed items should be disposed. |
Determines whether the specified item is a member of the collection.
Parameter | Type | Description |
---|---|---|
item |
Returns: Boolean. true if the ListViewItem is a member of the collection; otherwise, false.
Determines whether the collection contains an item with the specified key.
Parameter | Type | Description |
---|---|---|
key |
Returns: Boolean. true to indicate the collection contains a ListViewItem with the specified key; otherwise, false.
Copies the entire collection into an existing array at a specified location within the array.
Parameter | Type | Description |
---|---|---|
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<ListViewItem>. An IEnumerator that represents the ListViewItemCollection.
Returns the index of the specified item in the collection.
Parameter | Type | Description |
---|---|---|
item |
Returns: Int32. The zero-based index of the item found in the ListViewItemCollection; otherwise, -1.
Returns the index of the first occurrence of a item with the specified key.
Parameter | Type | Description |
---|---|---|
key |
Returns: Int32. The zero-based index of the first occurrence of a ListViewItem with the specified key, if found; otherwise, -1.
Inserts an existing item into the collection at the specified location.
Parameter | Type | Description |
---|---|---|
index | The indexed location within the collection to insert the item. | |
item |
Throws:
ArgumentException The item is currently assigned to another ListView.
Creates a new item with the specified text and inserts it at the specified index.
Parameter | Type | Description |
---|---|---|
index | ||
text |
Returns: ListViewItem. The ListViewItem that was inserted in the collection.
Creates a new item with the specified text and key, and inserts it into the collection.
Parameter | Type | Description |
---|---|---|
index | ||
key | ||
text |
Returns: ListViewItem. The ListViewItem that was inserted in the collection.
Creates a new item with the specified key, text, and image, and inserts it into the collection at the specified index.
Parameter | Type | Description |
---|---|---|
index | ||
key | ||
text | ||
imageIndex |
Returns: ListViewItem. The ListViewItem that was inserted in the collection.
Creates a new item with the specified key, text, and image, and inserts it into the collection at the specified index.
Parameter | Type | Description |
---|---|---|
index | ||
key | ||
text | ||
imageKey |
Returns: ListViewItem. The ListViewItem that was inserted in the collection.
Removes the specified item from the collection.
Parameter | Type | Description |
---|---|---|
item |
Removes the item from the collection at a specified index.
Parameter | Type | Description |
---|---|---|
index |
Removes the item with the specified key from the collection.
Parameter | Type | Description |
---|---|---|
key |
CollectionChangeEventHandler Fired when the collection changes.
The label text displayed by the .
The name of the .
The text to display in the .
The name of the .
The text to display in the .
The index of the image to display in the .
The text to display in the .
The image to display in the .
The to add to the collection.
An array of objects representing the items to add to the collection.
The to locate in the collection.
The name of the to search for.
The to locate in the collection.
The name of the to search for.
The to insert into the collection.
The location within the collection to insert the .
The text to display in the .
The location within the collection to insert the .
The name of the .
The text to display in the.
The location within the collection to insert the .
The name of the .
The text to display in the .
The index of the image to display in the .
The location within the collection to insert the .
The name of the .
The text to display in the .
The key of the image to display in the .
The to remove.
The index of the to remove.
The name of the to remove from the collection.