Method Add
Add(View?)
Adds a subview (child) to this view.
public virtual View? Add(View? view)
Parameters
view
ViewThe view to add.
Returns
- View
The view that was added.
Remarks
The Views that have been added to this view can be retrieved via the Subviews property. See also Remove(View?)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.
Add(params View[]?)
Adds the specified views (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 also Remove(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.