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
Product Families
Office
Windows
Windows Server System
Windows Mobile
Developer Tools
Business Solutions
Games & Xbox
MSN
Resources
Microsoft Update
Office Update
Download Center
Help & Support
Security
Volume Licensing
About Microsoft
Company Information
Investor Relations
PressPass for journalists
Popular Places
MSDN (Developers)
TechNet (IT Pros)
Microsoft At Home
Microsoft At Work
Business & Industry
Microsoft partners
Microsoft hardware
Product catalog
Mactopia
Microsoft.com site map
Popular Searches
Templates
ActiveSync
Clip art
Popular Downloads
Windows Defender Beta 2
DirectX End-User Runtime
More popular downloads
Welcome
|
Sign in
Search MSDN
Search Microsoft.com
Live Search
Developer Centers
MSDN Home
.NET Framework Developer Center
Home
Library
Learn
Downloads
Support
Community
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
Collapse All
Language Filter
Visual Basic
C#
C++
J#
JScript
XAML
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
.NET Framework Class Library
ListItemCollection Methods
Updated: November 2007
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 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
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
Manage Your Profile
|
Legal
|
Contact Us
|
MSDN Flash Newsletter
© 2008 Microsoft Corporation. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement