This documentation is archived and is not being maintained.
ListItemCollection Members
Visual Studio 2008
A collection of ListItem objects in a list control. This class cannot be inherited.
The ListItemCollection type exposes the following members.
| Name | Description | |
|---|---|---|
|
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 | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
FindByText | Searches the collection for a ListItem with a Text property that matches 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 | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType | Gets the type of the current instance. (Inherited from Object.) |
|
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. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Remove | Overloaded. Removes a ListItem from the collection. |
|
RemoveAt | Removes the ListItem at the specified index from the collection. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
|
Cast | Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
|
OfType | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
| Name | Description | |
|---|---|---|
|
Capacity | Gets or sets the maximum number of items that the ListItemCollection can store. |
|
Count | Gets the number of ListItem objects in the collection. |
|
IsReadOnly | Gets a value indicating whether the ListItemCollection is read-only. |
|
IsSynchronized | Gets a value indicating whether access to the ListItemCollection is synchronized (thread-safe). |
|
Item | Gets a ListItem at the specified index in the collection. |
|
SyncRoot | Gets the object that can be used to synchronize access to the ListItemCollection. |
| Name | Description | |
|---|---|---|
|
IList::Add | Infrastructure. For a description of this member, see Add. |
|
IList::Contains | Infrastructure. For a description of this member, see Contains. |
|
IList::IndexOf | Infrastructure. For a description of this member, see IndexOf. |
|
IList::Insert | Infrastructure. For a description of this member, see Insert. |
|
IList::IsFixedSize | Infrastructure. For a description of this member, see IsFixedSize. |
|
IStateManager::IsTrackingViewState | Infrastructure. For a description of this member, see IsTrackingViewState. |
|
IList::Item | Infrastructure. For a description of this member, see Item. |
|
IStateManager::LoadViewState | Infrastructure. Loads the previously saved state. |
|
IList::Remove | Infrastructure. For a description of this member, see Remove. |
|
IStateManager::SaveViewState | Infrastructure. Returns object containing state changes. |
|
IStateManager::TrackViewState | Infrastructure. Starts tracking state of changes. |
Show: