Table of Contents

Method Remove

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

Remove(ISizer)

Removes a sizer child from the sizer and destroys it.

bool Remove(ISizer sizer)

Parameters

sizer ISizer

The (child-)sizer to be removed.

Returns

bool

true if operation is successful; 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.

Remove(int)

Removes a child from the sizer and destroys it if it is a sizer or a spacer, but not if it is a control (because controls are owned by their parent control, not the sizer).

bool Remove(int index)

Parameters

index int

Item index.

Returns

bool

true if operation is successful; 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.