Table of Contents

Method ComputeFittingClientSize

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

ComputeFittingClientSize(Control)

Computes client area size for control so that it matches the sizer's minimal size.

SizeI ComputeFittingClientSize(Control control)

Parameters

control Control

Control.

Returns

SizeI

Remarks

Unlike GetMinSize(), this method accounts for other constraints imposed on control, namely display's size (returned size will never be too large for the display) and maximum control size if previously set by MaximumSize.