This documentation is archived and is not being maintained.

ListItemCollection Members

A collection of ListItem objects in a list control. This class cannot be inherited.

The ListItemCollection type exposes the following members.

  NameDescription
Public method ListItemCollection Initializes a new instance of the ListItemCollection class.
Top

  NameDescription
Public method Add Overloaded. Appends a ListItem to the end of the collection.
Public method AddRange Adds the items in an array of ListItem objects to the collection.
Public method Clear Removes all ListItem objects from the collection.
Public method Contains Determines whether the collection contains the specified item.
Public method CopyTo Copies the items from the ListItemCollection to the specified System::Array, starting with the specified index.
Public method Equals 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 FindByText Searches the collection for a ListItem with a Text property that matches the specified text.
Public method FindByValue Searches the collection for a ListItem with a Value property that contains the specified value.
Public method GetEnumerator Returns a System.Collections::IEnumerator implemented object that contains all ListItem objects in the ListItemCollection.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method IndexOf Determines the index value that represents the position of the specified ListItem in the collection.
Public method Insert Overloaded. Inserts a ListItem in the collection at the specified index location.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove Overloaded. Removes a ListItem from the collection.
Public method RemoveAt Removes the ListItem at the specified index from the collection.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public Extension Method AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method Cast Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method OfType Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

  NameDescription
Public property Capacity Gets or sets the maximum number of items that the ListItemCollection can store.
Public property Count Gets the number of ListItem objects in the collection.
Public property IsReadOnly Gets a value indicating whether the ListItemCollection is read-only.
Public property IsSynchronized Gets a value indicating whether access to the ListItemCollection is synchronized (thread-safe).
Public property Item Gets a ListItem at the specified index in the collection.
Public property SyncRoot Gets the object that can be used to synchronize access to the ListItemCollection.
Top

  NameDescription
Explicit interface implemetation Private method IList::Add Infrastructure. For a description of this member, see Add.
Explicit interface implemetation Private method IList::Contains Infrastructure. For a description of this member, see Contains.
Explicit interface implemetation Private method IList::IndexOf Infrastructure. For a description of this member, see IndexOf.
Explicit interface implemetation Private method IList::Insert Infrastructure. For a description of this member, see Insert.
Explicit interface implemetation Private property IList::IsFixedSize Infrastructure. For a description of this member, see IsFixedSize.
Explicit interface implemetation Private property IStateManager::IsTrackingViewState Infrastructure. For a description of this member, see IsTrackingViewState.
Explicit interface implemetation Private property IList::Item Infrastructure. For a description of this member, see Item.
Explicit interface implemetation Private method IStateManager::LoadViewState Infrastructure. Loads the previously saved state.
Explicit interface implemetation Private method IList::Remove Infrastructure. For a description of this member, see Remove.
Explicit interface implemetation Private method IStateManager::SaveViewState Infrastructure. Returns object containing state changes.
Explicit interface implemetation Private method IStateManager::TrackViewState Infrastructure. Starts tracking state of changes.
Top
Show: