UITraitCollection.FromHorizontalSizeClass(UIUserInterfaceSizeClass) 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.
Creates a new UITraitCollection object where only the horizontal size class has been specified.
[Foundation.Export("traitCollectionWithHorizontalSizeClass:")]
public static UIKit.UITraitCollection FromHorizontalSizeClass (UIKit.UIUserInterfaceSizeClass horizontalSizeClass);
static member FromHorizontalSizeClass : UIKit.UIUserInterfaceSizeClass -> UIKit.UITraitCollection
Parameters
- horizontalSizeClass
- UIUserInterfaceSizeClass
The desired horizontal size class to specify.
Returns
New instance of UITraitCollection with a single element specified.
- Attributes