Method DefaultGetPreferredSize
DefaultGetPreferredSize(Control, SizeD, LayoutStyle)
Retrieves the size of a rectangular area into which a control can be fitted, in device-independent units.
public static SizeD DefaultGetPreferredSize(Control container, SizeD availableSize, LayoutStyle layout)
Parameters
container
ControlContainer control which childs will be processed.
availableSize
SizeDThe available space that a parent element can allocate a child control.
layout
LayoutStyleLayout 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(SizeD).