Edit

Share via


UIView.IsDescendantOfView(UIView) Method

Definition

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

[Foundation.Export("isDescendantOfView:")]
public virtual bool IsDescendantOfView (UIKit.UIView view);
abstract member IsDescendantOfView : UIKit.UIView -> bool
override this.IsDescendantOfView : UIKit.UIView -> bool

Parameters

view
UIView

The UIView that may be an ancestore of this UIView.

Returns

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

Attributes

Remarks

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