[]
        
(Showing Draft Content)

FarPoint.Win.Spread.CellType.BaseCellType.GetPreferredSize

GetPreferredSize Method

GetPreferredSize(Control)

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

Declaration
public virtual Size GetPreferredSize(Control editor)
Public Overridable Function GetPreferredSize(editor As Control) As Size
Parameters
Type Name Description
Control editor

Name of the editor control

Returns
Type Description
Size

The preferred size of the cell for the renderer control

Implements

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

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

Declaration
public abstract Size GetPreferredSize(Graphics g, Size size, Appearance appearance, object value, float zoomFactor)
Public MustOverride Function GetPreferredSize(g As Graphics, size As Size, appearance As Appearance, value As Object, zoomFactor As Single) As Size
Parameters
Type Name Description
Graphics g

Graphics device interface for painting the cell

Size size

Preferred or maximum required size

Appearance appearance

Appearance settings of the renderer control

object value

Object that contains the name of the renderer control

float zoomFactor

Numeric value for scaling the display of the renderer control

Returns
Type Description
Size

The preferred size of the cell for the renderer control

Implements