UIView.IsDescendantOfView(UIView) UIView.IsDescendantOfView(UIView) Method


Returns true if this UIView is in the view's view hierarchy.

public virtual bool IsDescendantOfView (UIKit.UIView view);
abstract member IsDescendantOfView : UIKit.UIView -> bool
override this.IsDescendantOfView : UIKit.UIView -> bool


UIView UIView

The UIView that may be an ancestore of this UIView.


Returns true if the view is the same as this or if the view is an ancestor of this.


A UIView is a descendant of another view if the views are the same or if the view can be reached by repeatedly retrieving the Superview property. This is the equivalent to specifying that this UIView is in view's view hierarchy.

Applies to