DataGridViewCell.GetSize(Int32) 方法

定义

获取单元格的大小。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

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

返回

Size,它表示单元格的维数。A Size representing the cell's dimensions.

异常

rowIndex 为 -1rowIndex is -1

注解

此方法不能与共享行中的单元一起使用。This method cannot be used with a cell in a shared row.

适用于

另请参阅