DataGridViewSelectedCellCollection.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; }
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

DataGridViewCell から取得する DataGridViewSelectedCellCollection のインデックス位置。

プロパティ値

指定したインデックスにある DataGridViewCell です。

実装

例外

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

index が 0 未満です。

- または -

index がコレクション内のセル数以上です。

注釈

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

適用対象

こちらもご覧ください