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

参数

属性值

位于 DataGridViewCell 指定索引处。

例外

index 小于 0。

-或-

index 等于或大于集合中的单元格数。

适用于

另请参阅