Upgrade your Internet Experience
United States - English
Argentina (Español)
Australia (English)
Brasil (Português)
Canada (English)
Canada (Français)
中国 (简体中文)
Colombia (Español)
Deutschland (Deutsch)
España (Español)
France (Français)
India (English)
Italia (Italiano)
日本 (日本語)
México (Español)
Perú (Español)
Россия (Pусский)
United Kingdom (English)
United States (English)
More...
Microsoft.com
Welcome
Sign in
.NET Framework Developer Center
Home
Library
Learn
Downloads
Support
Community
Forums
Printer Friendly Version
Send
Add Content...
Click to Rate and Give Feedback
Give feedback on this content
MSDN Library
MSDN
Please Wait
MSDN Library
Please Wait
.NET Development
Please Wait
.NET Framework 3.5
Please Wait
.NET Framework Class Library
Please Wait
System.Web.UI.WebControls Namespace
Please Wait
ListItemCollection Class
Please Wait
ListItemCollection Methods
Please Wait
Switch on low bandwidth view
Collapse All
Language Filter
Visual Basic
C#
C++
J#
JScript
XAML
F#
Members Filter
Include Protected Members
Include Inherited Members
Frameworks Filter
Include .NET Framework Members
Include .NET Compact Framework Members
Include XNA Framework Members
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5
Other versions are also available for the following:
Microsoft Visual Studio 2003/.NET Framework 1.1
Microsoft Visual Studio 2005/.NET Framework 2.0
.NET Framework 3.0
Microsoft Visual Studio 2010/.NET Framework 4.0
.NET Framework Class Library
ListItemCollection Methods
The
ListItemCollection
type exposes the following members.
Methods
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 attempt to free resources and perform other cleanup operations before the
Object
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
.)
Top
Extension Methods
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
.)
Top
Explicit Interface Implementations
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
.
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.
Top
See Also
Reference
ListItemCollection Class
System.Web.UI.WebControls Namespace
Tags
:
Add a tag
Add
Cancel
Flag as
ContentBug
Community Content
Add new content
Annotations
|
Edit
Tags
:
Add a tag
Add
Cancel
Flag as
ContentBug
© 2009 Microsoft Corporation. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement