UITraitCollection.FromLayoutDirection 方法

定义

静态工厂方法,用于为指定的 layoutDirection创建 UITraitCollection

[Foundation.Export("traitCollectionWithLayoutDirection:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static UIKit.UITraitCollection FromLayoutDirection (UIKit.UITraitEnvironmentLayoutDirection layoutDirection);
static member FromLayoutDirection : UIKit.UITraitEnvironmentLayoutDirection -> UIKit.UITraitCollection

参数

返回

属性

适用于