[]
        
(Showing Draft Content)

FarPoint.Win.Spread.IEnhancedRenderer.GetPreferredSize

GetPreferredSize Method

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

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

Declaration
Size GetPreferredSize(Graphics g, Size size, Appearance appearance, object value, float zoomFactor, ExtraRendererSettings extraRendererSettings)
Function GetPreferredSize(g As Graphics, size As Size, appearance As Appearance, value As Object, zoomFactor As Single, extraRendererSettings As ExtraRendererSettings) 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 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

ExtraRendererSettings extraRendererSettings

The extra renderer settings.

Returns
Type Description
Size

The size required to fully paint the content.