ListItemCollection Members

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

The following tables list the members exposed by the ListItemCollection type.

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

  Name Description
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

(see also Protected Methods )
  Name Description
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  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method FindByText Searches the collection for a ListItem with a Text property that contains 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.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (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

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

  Name Description
Explicit interface implementation Method System.Collections.IList.Add For a description of this member, see Add.
Explicit interface implementation Method System.Collections.IList.Contains For a description of this member, see Contains.
Explicit interface implementation Method System.Collections.IList.IndexOf For a description of this member, see IndexOf.
Explicit interface implementation Method System.Collections.IList.Insert For a description of this member, see Insert.
Explicit interface implementation Method System.Collections.IList.Remove For a description of this member, see Remove.
Explicit interface implementation Method System.Web.UI.IStateManager.LoadViewState Loads the previously saved state.
Explicit interface implementation Method System.Web.UI.IStateManager.SaveViewState Returns object containing state changes.
Explicit interface implementation Method System.Web.UI.IStateManager.TrackViewState Starts tracking state of changes.
Explicit interface implementation Property System.Collections.IList.IsFixedSize For a description of this member, see IsFixedSize.
Explicit interface implementation Property System.Collections.IList.Item For a description of this member, see Item.
Explicit interface implementation Property System.Web.UI.IStateManager.IsTrackingViewState For a description of this member, see IsTrackingViewState.
Top

Community Additions

ADD
Show: