Method Remove
Remove(ISizer)
Removes a sizer child from the sizer and destroys it.
bool Remove(ISizer sizer)
Parameters
sizer
ISizerThe (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
intItem 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.