DataGridViewSelectedCellCollection.Item[Int32] プロパティ

定義

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

public:
 property System::Windows::Forms::DataGridViewCell ^ default[int] { System::Windows::Forms::DataGridViewCell ^ get(int index); };
public System.Windows.Forms.DataGridViewCell this[int index] { get; }
member this.Item(int) : System.Windows.Forms.DataGridViewCell
Default Public ReadOnly Property Item(index As Integer) As DataGridViewCell

パラメーター

index
Int32

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

プロパティ値

DataGridViewCell

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

例外

index が 0 未満です。

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

適用対象

こちらもご覧ください