Table of Contents

Method SetPanelWidthAtLeast

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

SetPanelWidthAtLeast(SplitPanelPosition, float, bool)

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

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

Parameters

position SplitPanelPosition

The position of the panel whose width is to be set.

value float

The minimum width to set for the panel.

onlyOnce bool

Whether to set the width only once.

Returns

bool

Remarks

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