Android.Views.ViewGroup.DetachAllViewsFromParent Method
Detaches all views from the parent.

Syntax

[Android.Runtime.Register("detachAllViewsFromParent", "()V", "GetDetachAllViewsFromParentHandler")]
protected virtual void DetachAllViewsFromParent ()

See Also

ViewGroup.DetachViewFromParent(View)
ViewGroup.DetachViewFromParent(int)
ViewGroup.DetachViewsFromParent(int, System.Int32)
ViewGroup.AttachViewToParent(View, System.Int32, System.Int32)
ViewGroup.RemoveDetachedView(View, System.Boolean)

Remarks

Detaches all views from the parent. Detaching a view should be followed either by a call to ViewGroup.AttachViewToParent(View, System.Int32, System.Int32) or a call to ViewGroup.RemoveDetachedView(View, System.Boolean). Detachment should only be temporary; reattachment or removal should happen within the same drawing cycle as detachment. When a view is detached, its parent is null and cannot be retrieved by a call to ViewGroup.GetChildAt(int).

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1