Table of Contents

Method RemoveAll

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

RemoveAll()

Removes all SubViews added via Add(View?) or Add(params View[]?) from this View.

public virtual IReadOnlyCollection<View> RemoveAll()

Returns

IReadOnlyCollection<View>

A list of removed Views.

Remarks

Normally SubViews will be disposed when this View is disposed. Removing a SubView causes ownership of the SubView's lifecycle to be transferred to the caller; the caller must call Dispose() on any Views that were added.

RemoveAll<TView>()

Removes all SubViews of a type added via Add(View?) or Add(params View[]?) from this View.

public virtual IReadOnlyCollection<TView> RemoveAll<TView>() where TView : View

Returns

IReadOnlyCollection<TView>

A list of removed Views.

Type Parameters

TView

Remarks

Normally SubViews will be disposed when this View is disposed. Removing a SubView causes ownership of the SubView's lifecycle to be transferred to the caller; the caller must call Dispose() on any Views that were added.