Method GetPreferredSize
GetPreferredSize(PreferredSizeContext)
Retrieves the size of a rectangular area into which a control can be fitted, in device-independent units.
public virtual SizeD GetPreferredSize(PreferredSizeContext context)
Parameters
contextPreferredSizeContextThe PreferredSizeContext providing the available size and other layout information.
Returns
- SizeD
A SizeD representing the preferred width and height of a rectangle, in device-independent units.
GetPreferredSize()
Calls GetPreferredSize(PreferredSizeContext) with PositiveInfinity as a parameter value.
public SizeD GetPreferredSize()