Method Detach
Detach(Control)
Detaches the child control from the sizer without destroying it.
bool Detach(Control control)
Parameters
controlControl
Returns
- bool
trueif the child item was found and detached,falseotherwise.
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
sizerISizerThe (child-)sizer to be detached.
Returns
- bool
trueif the child item was found and detached,falseotherwise.
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
indexintItem index.
Returns
- bool
trueif the child item was found and detached,falseotherwise.
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.