ListItemCollection Methods
MSDN Home
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
.NET Framework Class Library
System.Web.UI.WebControls Name ...
ListItemCollection Class
ListItemCollection Methods
Add Method
AddRange Method
Clear Method
Contains Method
CopyTo Method
FindByText Method
FindByValue Method
GetEnumerator Method
IList.Add Method
IList.Contains Method
IList.IndexOf Method
IList.Insert Method
IList.Remove Method
IndexOf Method
Insert Method
IStateManager.LoadViewState Me ...
IStateManager.SaveViewState Me ...
IStateManager.TrackViewState M ...
Remove Method
RemoveAt Method
ListItemCollection Class
ListItemCollection Members
ListItemCollection Constructor
ListItemCollection Methods
ListItemCollection Properties
Switch View :
Classic
Lightweight Beta
ScriptFree
Feedback
.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 :