UITraitCollection.Contains(UITraitCollection) 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.
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
Traits to probe for.
Returns
True if all the traits in the traits parameter are present, false otherwise.
- Attributes