Method Add | Terminal.Gui v2 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
Add(View?)
Adds a SubView (child) to this view.
public virtual View? Add(View? view)
Parameters
view
View
The view to add.
Returns
The view that was added.
Remarks
See Also
Add(params View[]?)
Adds the specified SubView (children) to the view.
public void Add(params View[]? views)
Parameters
views
View[]
Array of one or more views (can be optional parameter).
Remarks
The Views that have been added to this view can be retrieved via the SubViews property. See alsoRemove(View?) and RemoveAll().
SubViews will be disposed when this View is disposed. In other-words, calling this method causes the lifecycle of the subviews to be transferred to this View.