Table of Contents

Method GetPreferredSize

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

GetPreferredSize(SizeD)

Retrieves the size of a rectangular area into which a control can be fitted, in device-independent units.

SizeD GetPreferredSize(SizeD availableSize)

Parameters

availableSize SizeD

The 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.

SizeD GetPreferredSize()

Returns

SizeD