DataGridViewColumnHeaderCell.GetValue(Int32) 方法

定義

取得儲存格的值。

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

儲存格的父資料列索引。

傳回

Object

DataGridViewColumnHeaderCell 中所包含的值。

例外狀況

rowIndex 不是 -1。

適用於

另請參閱