[]
        
(Showing Draft Content)

FarPoint.Web.Spread.TextCellType.GetPreferredSize

GetPreferredSize Method

GetPreferredSize(Graphics, Size, Appearance, object, float, bool, bool)

Gets the preferred (maximum needed) size of the cell for the renderer control.

Declaration
public override Size GetPreferredSize(Graphics g, Size size, Appearance appearance, object value, float zoomFactor, bool fitColumn, bool fitRow)
Public Overrides Function GetPreferredSize(g As Graphics, size As Size, appearance As Appearance, value As Object, zoomFactor As Single, fitColumn As Boolean, fitRow As Boolean) As Size
Parameters
Type Name Description
Graphics g

Graphics device interface for painting the cell

Size size

Preferred or maximum needed size

Appearance appearance

Appearance settings

object value

Object that contains the name of the renderer control

float zoomFactor

Numeric value for zoom factor for scaling the display of the renderer control

bool fitColumn

Whether to fit the column

bool fitRow

Whether to fit the row

Returns
Type Description
Size
Overrides