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

例外

index が 0 未満です。

-又は-

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

適用対象

こちらもご覧ください