This documentation is archived and is not being maintained.

ListItemCollection Methods

The ListItemCollection type exposes the following members.

  NameDescription
Public method Add(ListItem) Appends the specified ListItem to the end of the collection.
Public method Add(String) Appends a ListItem to the end of the collection that represents the specified string.
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(Object) 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 equals 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(Int32, String) Inserts a ListItem which represents the specified string in the collection at the specified index location.
Public method Insert(Int32, ListItem) Inserts the specified 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(ListItem) Removes the specified ListItem from the collection.
Public method Remove(String) Removes a ListItem from the collection that represents the specified string.
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 AsParallel Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension Method AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method Cast<TResult> Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method OfType<TResult> Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
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 method IList::Remove Infrastructure. For a description of this member, see Remove.
Explicit interface implemetation Private method IStateManager::LoadViewState Infrastructure. Loads the previously saved state.
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: