DataGridViewSelectedRowCollection.IList.Item[Int32] プロパティ

定義

指定したインデックス位置にある要素を取得します。

property System::Object ^ System::Collections::IList::Item[int] { System::Object ^ get(int index); void set(int index, System::Object ^ value); };
object System.Collections.IList.Item[int index] { get; set; }
member this.System.Collections.IList.Item(int) : obj with get, set
 Property Item(index As Integer) As Object Implements IList.Item

パラメーター

index
Int32

DataGridViewSelectedRowCollection から取得する要素のインデックス。

プロパティ値

Object

指定したインデックス位置にある要素。

実装

例外

プロパティが設定されています。

index が 0 未満です。

  • または - index がコレクション内の行数以上です。

注釈

このメンバーは、明示的なインターフェイス メンバーの実装です。 これは、DataGridViewSelectedRowCollection のインスタンスが IList インターフェイスにキャストされる場合のみ、使用できます。

適用対象

こちらもご覧ください