UITraitCollection.Contains(UITraitCollection) UITraitCollection.Contains(UITraitCollection) Method

Definition

Probes whether this UITraitCollection contains all the traits specified.

[Foundation.Export("containsTraitsInCollection:")]
public virtual bool Contains (UIKit.UITraitCollection trait);
abstract member Contains : UIKit.UITraitCollection -> bool
override this.Contains : UIKit.UITraitCollection -> bool

Parameters

trait
UITraitCollection UITraitCollection

Traits to probe for.

Returns

True if all the traits in the traits parameter are present, false otherwise.

Applies to