Android.Views.ViewGroup.DetachViewsFromParent Method
Detaches a range of views from their parents.

Syntax

[Android.Runtime.Register("detachViewsFromParent", "(II)V", "GetDetachViewsFromParent_IIHandler")]
protected virtual void DetachViewsFromParent (int start, int count)

See Also

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

Parameters

start
the first index of the childrend range to detach
count
the number of children to detach

Remarks

Detaches a range of views from their parents. 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