Method RemoveAll | Terminal.Gui v2 (original) (raw)

Namespace

Terminal.Gui

Assembly

Terminal.Gui.dll

RemoveAll()

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()

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

Returns

IReadOnlyCollection

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.