DataGridViewCell.GetSize(Int32) 方法

定義

取得儲存格的大小。

protected:
 virtual System::Drawing::Size GetSize(int rowIndex);
protected virtual System.Drawing.Size GetSize (int rowIndex);
abstract member GetSize : int -> System.Drawing.Size
override this.GetSize : int -> System.Drawing.Size
Protected Overridable Function GetSize (rowIndex As Integer) As Size

參數

rowIndex
Int32

儲存格的父資料列索引。

傳回

表示儲存格維度 (Dimension) 的 Size

例外狀況

rowIndex 為 -1

備註

這個方法不能與共享資料列中的儲存格搭配使用。

適用於

另請參閱