DataGridViewHeaderCell.GetValue(Int32) 方法

定义

获取单元格的值。Gets the value of the cell.

protected:
 override System::Object ^ GetValue(int rowIndex);
protected override object GetValue (int rowIndex);
override this.GetValue : int -> obj
Protected Overrides Function GetValue (rowIndex As Integer) As Object

参数

rowIndex
Int32

该单元格的父行索引。The index of the cell's parent row.

返回

Object

当前 DataGridViewCell 的值。The value of the current DataGridViewCell.

例外

rowIndex 不是 -1。rowIndex is not -1.

适用于

另请参阅