Method Detach
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
ISizerThe (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
intItem 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.