Method DefaultGetPreferredSize
DefaultGetPreferredSize(AbstractControl, PreferredSizeContext, LayoutStyle)
Retrieves the size of a rectangular area into which a control can be fitted, in device-independent units.
public static SizeD DefaultGetPreferredSize(AbstractControl container, PreferredSizeContext context, LayoutStyle layout)
Parameters
containerAbstractControlContainer control which children will be processed.
contextPreferredSizeContextThe PreferredSizeContext providing the available size and other layout information.
layoutLayoutStyleLayout style to use.
Returns
- SizeD
A SuggestedSize representing the width and height of a rectangle, in device-independent units.
Remarks
This is a default implementation which is called from GetPreferredSize(PreferredSizeContext).