This documentation is archived and is not being maintained.

DataListItemCollection.Item Property

Gets a DataListItem object at the specified index in the collection.

[C#] In C#, this property is the indexer for the DataListItemCollection class.

[Visual Basic]
Public Default ReadOnly Property Item( _
   ByVal index As Integer _
) As DataListItem
[C#]
public DataListItem this[
 int index
] {get;}
[C++]
public: __property DataListItem* get_Item(
 int index
);
[JScript]
returnValue = DataListItemCollectionObject.Item(index);
-or-
returnValue = DataListItemCollectionObject(index);

[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String.

Arguments [JScript]

index
The index of the DataListItem in the collection to retrieve.

Parameters [Visual Basic, C#, C++]

index
The index of the DataListItem in the collection to retrieve.

Property Value

A DataListItem object in the collection at the specified index.

Remarks

Use this indexer to get a DataListItem object from the DataListItemCollection at the specified index using array notation.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

DataListItemCollection Class | DataListItemCollection Members | System.Web.UI.WebControls Namespace | DataListItem

Show: