Method Remove
Remove(ISizer)
Removes a sizer child from the sizer and destroys it.
bool Remove(ISizer sizer)
Parameters
sizerISizerThe (child-)sizer to be removed.
Returns
- bool
trueif operation is successful;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.
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
indexintItem index.
Returns
- bool
trueif operation is successful;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.