[]
        
(Showing Draft Content)

FarPoint.Win.Spread.CellType.ColorPickerCellType.GetPreferredSize

GetPreferredSize Method

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

Gets the preferred (maximum) size of the cell.

Declaration
public override Size GetPreferredSize(Graphics g, Size size, Appearance appearance, object value, float zoomFactor)
Public Overrides 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

Size of the cell

Appearance appearance

Appearance settings of the cell

object value

Object that contains the name of the cell

float zoomFactor

Numeric value for scaling the display of the cell

Returns
Type Description
Size
Overrides