Method GetPreferredSize
GetPreferredSize(SizeD)
Retrieves the size of a rectangular area into which a control can be fitted, in device-independent units.
public virtual SizeD GetPreferredSize(SizeD availableSize)
Parameters
availableSize
SizeDThe available space that a parent element can allocate a child control.
Returns
- SizeD
A SuggestedSize representing the width and height of a rectangle, in device-independent units.
GetPreferredSize()
Calls GetPreferredSize(SizeD) with PositiveInfinity as a parameter value.
public virtual SizeD GetPreferredSize()