public virtual void Clear(bool dispose = true) { foreach (Drawable t in children) { if (dispose) { t.Dispose(); } t.Parent = null; } children.Clear(); Invalidate(Invalidation.ScreenSpaceQuad); }
protected void Clear(bool dispose = true) { foreach (Drawable t in Children) { if (dispose) { t.Dispose(); } t.Parent = null; } internalChildren.Clear(); Invalidate(); }
public virtual void Clear(bool dispose = true) { if (AddTarget != null && AddTarget != this) { AddTarget.Clear(dispose); return; } foreach (Drawable t in children) { if (dispose) { t.Dispose(); } t.Parent = null; } children.Clear(); Invalidate(Invalidation.Position | Invalidation.SizeInParentSpace); }