DataGridViewCell.GetSize(Int32) DataGridViewCell.GetSize(Int32) DataGridViewCell.GetSize(Int32) DataGridViewCell.GetSize(Int32) Method

定義

取得儲存格的大小。Gets the size of the cell.

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 Int32 Int32 Int32

儲存格的父資料列索引。The index of the cell's parent row.

傳回

表示儲存格維度 (Dimension) 的 SizeA Size representing the cell's dimensions.

例外狀況

備註

這個方法無法與共享資料列中的資料格搭配使用。This method cannot be used with a cell in a shared row.

適用於

另請參閱