コレクション内の指定したインデックス位置の DataListItem オブジェクトを取得します。
[C#] C# では、このプロパティは DataListItemCollection クラスのインデクサになります。
Public Default ReadOnly Property Item( _
ByVal index As Integer _) As DataListItem
[C#]
public DataListItem this[intindex] {get;}
[C++]
public: __property DataListItem* get_Item(intindex);
[JScript]
returnValue = DataListItemCollectionObject.Item(index);またはreturnValue = DataListItemCollectionObject(index);
[JScript] JScript では、この型で定義されている既定のインデックス プロパティを使用することができます。しかし、独自のインデックス プロパティを明示的に定義することはできません。ただし、このクラスの expando 属性を指定すると、既定のインデックス プロパティが提供されます。提供されるインデックス プロパティの型は Object 型であり、インデックス型は String になります。
引数 [JScript]
- index
取得するコレクション内の DataListItem のインデックス。
パラメータ [Visual Basic, C#, C++]
- index
取得するコレクション内の DataListItem のインデックス。
プロパティ値
コレクション内の指定したインデックス位置にある DataListItem オブジェクト。
解説
このインデクサを使用して、 DataListItemCollection の配列表記で指定したインデックス位置にある DataListItem オブジェクトを取得します。
必要条件
プラットフォーム: Windows 2000, Windows XP Professional, Windows Server 2003 ファミリ
参照
DataListItemCollection クラス | DataListItemCollection メンバ | System.Web.UI.WebControls 名前空間 | DataListItem