Table of Contents

Method Detach

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

Detach(Control)

Detaches the child control from the sizer without destroying it.

bool Detach(Control control)

Parameters

control Control

Returns

bool

true if the child item was found and detached, false otherwise.

Remarks

This method does not cause any layout or resizing to take place, call Layout() to update the layout "on screen" after removing a child from the sizer.

Detach(ISizer)

Detaches the child sizer from the sizer without destroying it.

bool Detach(ISizer sizer)

Parameters

sizer ISizer

The (child-)sizer to be detached.

Returns

bool

true if the child item was found and detached, false otherwise.

Remarks

This method does not cause any layout or resizing to take place, call Layout() to update the layout "on screen" after removing a child from the sizer.

Detach(int)

Detaches an item at the specified position from the sizer without destroying it.

bool Detach(int index)

Parameters

index int

Item index.

Returns

bool

true if the child item was found and detached, false otherwise.

Remarks

This method does not cause any layout or resizing to take place, call Layout() to update the layout "on screen" after removing a child from the sizer.