Table of Contents

Method SetPanelHeightAtLeast

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

SetPanelHeightAtLeast(SplitPanelPosition, float, bool)

Ensures that the height of the specified panel is at least the given value.

public virtual bool SetPanelHeightAtLeast(SplitPanelPosition position, float value, bool onlyOnce = false)

Parameters

position SplitPanelPosition

The position of the panel whose height is to be adjusted.

value float

The minimum height to set for the panel, if the current height is less.

onlyOnce bool

Whether to set the height only once.

Returns

bool

Remarks

If the current height of the panel is less than the specified value, the panel's height is increased to meet the minimum requirement.