Table of Contents

Method DefaultGetPreferredSize

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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 Control

Container control which childs will be processed.

availableSize SizeD

The available space that a parent element can allocate a child control.

layout LayoutStyle

Layout 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).