UIView.IsDescendantOfView(UIView) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.