Table of Contents

Method SetItemMinSize

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

SetItemMinSize(Control, int, int)

Set an item's minimum size by its control.

bool SetItemMinSize(Control control, int width, int height)

Parameters

control Control

Control attached to the item.

width int

Min width.

height int

Min height.

Returns

bool

true if operation is successful; false otherwise.

Remarks

This function enables an application to set the size of an item after initial creation. The control will be found recursively in the sizer's descendants.

SetItemMinSize(ISizer, int, int)

Set an item's minimum size by its sizer.

bool SetItemMinSize(ISizer sizer, int width, int height)

Parameters

sizer ISizer

Sizer attached to the item.

width int

Min width.

height int

Min height.

Returns

bool

true if operation is successful; false otherwise.

Remarks

This function enables an application to set the size of an item after initial creation. The subsizer will be found recursively in the sizer's descendants.

SetItemMinSize(int, int, int)

Set an item's minimum size by its index.

bool SetItemMinSize(int index, int width, int height)

Parameters

index int

Item index.

width int

Min width.

height int

Min height.

Returns

bool

true if operation is successful; false otherwise.