[]
        
(Showing Draft Content)

FarPoint.Win.Spread.CellType.BarCodeCellType.GetPreferredSize

GetPreferredSize Method

GetPreferredSize(Control)

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

Declaration
public override Size GetPreferredSize(Control editor)
Public Overrides Function GetPreferredSize(editor As Control) As Size
Parameters
Type Name Description
Control editor

Name of the editor control

Returns
Type Description
Size
Overrides
Implements

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

Determines the default fixed size of the barcode in pixels.

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 barcode

Appearance appearance

Appearance settings of the cell

object value

Value to display

float zoomFactor

Numeric value for scaling the display of the cell

Returns
Type Description
Size
Overrides
Implements