Table of Contents

Method DefaultGetPreferredSize

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

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

container AbstractControl

Container control which children will be processed.

context PreferredSizeContext

The PreferredSizeContext providing the available size and other layout information.

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(PreferredSizeContext).