This documentation is archived and is not being maintained.
ListItemCollection Methods
.NET Framework 1.1
The methods of the ListItemCollection class are listed here. For a complete list of ListItemCollection class members, see the ListItemCollection Members topic.
Public Methods
Add | Overloaded. Appends a ListItem to the end of the collection. |
AddRange | Adds the items in an array of ListItem objects to the collection. |
Clear | Removes all ListItem objects from the collection. |
Contains | Determines whether the collection contains the specified item. |
CopyTo | Copies the items from the ListItemCollection to the specified System.Array, starting with the specified index. |
Equals (inherited from Object) | Overloaded. Determines whether two Object instances are equal. |
FindByText | Searches the collection for a ListItem with a Text property that contains the specified text. |
FindByValue | Searches the collection for a ListItem with a Value property that contains the specified value. |
GetEnumerator | Returns a System.Collections.IEnumerator implemented object that contains all ListItem objects in the ListItemCollection. |
GetHashCode (inherited from Object) | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetType (inherited from Object) | Gets the Type of the current instance. |
IndexOf | Determines the index value that represents the position of the specified ListItem in the collection. |
Insert | Overloaded. Inserts a ListItem in the collection at the specified index location. |
Remove | Overloaded. Removes a ListItem from the collection. |
RemoveAt | Removes the ListItem at the specified index from the collection. |
ToString (inherited from Object) | Returns a String that represents the current Object. |
Protected Methods
Finalize (inherited from Object) | Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
In C# and C++, finalizers are expressed using destructor syntax. |
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object. |
See Also
ListItemCollection Class | System.Web.UI.WebControls Namespace
Show:
