All pages
Powered by GitBook
1 of 1

Loading...

ListView.SelectedIndexCollection

Wisej.Web.ListView SelectedIndexCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.0.0.0)

Represents the collection that contains the indexes to the selected items in a ListView control.

public class SelectedIndexCollection : IList<Int32>, ICollection<Int32>, IEnumerable<Int32>, IEnumerable
Public Class SelectedIndexCollection
    Inherits IList(Of Int32)
    Implements ICollection(Of Int32), IEnumerable(Of Int32), IEnumerable

Constructors

SelectedIndexCollection(owner)

Initializes a new instance of the class.

Name
Type
Description

Properties

Count

: Returns the number of items in the collection.

IsReadOnly

: Returns whether the collection is read-only.

Item(index)

: Returns the index value at the specified index within the collection.

Throws:

  • The index parameter is less than 0 or greater than or equal to the value of the property of .

Methods

Add(index)

Adds the item at the specified index in the collection to the .

Parameter
Type
Description

Returns: . The new count of selected items.

Throws:

  • The specified index is less than 0 or greater than or equal to the number of items in the owner . Or The owner is in virtual mode, and the specified index is less than 0 or greater than or equal to the value of .

Clear()

Clears the selection.

Contains(selectedIndex)

Determines whether the specified index is located in the collection.

Parameter
Type
Description

Returns: . true if the specified index from the for the is an item in the collection; otherwise, false.

CopyTo(array, index)

Copies the list of selected indexes into the specified array starting at the specified index .

Parameter
Type
Description

GetEnumerator()

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

Returns: . An that represents the selected index collection.

IndexOf(selectedIndex)

Returns the index within the of the specified index from the of the list view control.

Parameter
Type
Description

Returns: . The zero-based index in the collection where the specified index of the is located within the ; otherwise, -1 if the index is not located in the collection.

Remove(index)

Removes the item at the specified index in the collection from the .

Parameter
Type
Description

Throws:

  • The specified index is less than 0 or greater than or equal to the number of items in the owner . Or The owner is in virtual mode, and the specified index is less than 0 or greater than or equal to the value of .

owner

ListView

A ListView control that owns the collection.

index

Int32

The index of the item in the Items collection to add to the SelectedIndexCollection.

selectedIndex

Int32

The index of the selected item to locate in the collection.

array

Int32[]

Array that will received the list of selected indexes.

index

Int32

Starting index in array .

selectedIndex

Int32

The zero-based index from the ListViewItemCollection to locate in the collection.

index

Int32

The index of the item in the Items collection to remove from the SelectedIndexCollection.

SelectedIndexCollection
Int32
Boolean
Int32
ArgumentOutOfRangeException
Count
SelectedIndexCollection
Items
SelectedIndexCollection
Int32
ArgumentOutOfRangeException
ListView
ListView
VirtualListSize
Boolean
ListViewItemCollection
ListView
IEnumerator<Int32>
IEnumerator
SelectedIndexCollection
ListViewItemCollection
Int32
ListViewItemCollection
SelectedIndexCollection
Items
SelectedIndexCollection
ArgumentOutOfRangeException
ListView
ListView
VirtualListSize