Spread WinForms 15
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.CellType Namespace / IUniversalCellType Interface / GetPreferredSize Method
The context for painting the cell.
Preferred or maximum required size
Object that contains the name of the renderer control of the cell
The appearance setting of cell.


In This Topic
GetPreferredSize Method (IUniversalCellType)
In This Topic
Paints the cell, when not in edit mode, to the specified graphics interface with the specified settings.
Syntax
'Declaration
 
Function GetPreferredSize( _
   ByVal paintingContext As IPaintingContext, _
   ByVal size As Size, _
   ByVal value As Object, _
   ByRef cfResult As CfExecutedResult _
) As Size
 
'Usage
 
Dim instance As IUniversalCellType
Dim paintingContext As IPaintingContext
Dim size As Size
Dim value As Object
Dim cfResult As CfExecutedResult
Dim value As Size
 
value = instance.GetPreferredSize(paintingContext, size, value, cfResult)

Parameters

paintingContext
The context for painting the cell.
size
Preferred or maximum required size
value
Object that contains the name of the renderer control of the cell
cfResult
The appearance setting of cell.
See Also