Table of Contents

Method SetSizeToContent

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

SetSizeToContent(WindowSizeToContentMode)

Changes size of the control to fit the size of its content.

public virtual void SetSizeToContent(WindowSizeToContentMode mode = WindowSizeToContentMode.WidthAndHeight)

Parameters

mode WindowSizeToContentMode

Specifies how a control will size itself to fit the size of its content.