[]
Gets the preferred (maximum required) size of the cell for the renderer control.
public Size GetPreferredSize(Graphics g, Size size, Appearance appearance, object value, float zoomFactor)
Public Function GetPreferredSize(g As Graphics, size As Size, appearance As Appearance, value As Object, zoomFactor As Single) As Size
Type | Name | Description |
---|---|---|
Graphics | g | Graphics device interface for painting the cell |
Size | size | Preferred or maximum size needed |
Appearance | appearance | Appearance settings |
object | value | Object that contains the name of the renderer control |
float | zoomFactor | Numeric value for zoom factor for scaling the display of the renderer control |
Type | Description |
---|---|
Size | The Size object. |