DataGridViewColumnHeaderCell.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

DataGridViewColumnHeaderCell 中包含的值。The value contained in the DataGridViewColumnHeaderCell.

例外

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

适用于

另请参阅