UITraitCollection.FromUserInterfaceStyle(UIUserInterfaceStyle) メソッド

定義

新しい特性コレクションを作成し、指定したユーザー インターフェイス スタイルに関連付けます。

[Foundation.Export("traitCollectionWithUserInterfaceStyle:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static UIKit.UITraitCollection FromUserInterfaceStyle (UIKit.UIUserInterfaceStyle userInterfaceStyle);
static member FromUserInterfaceStyle : UIKit.UIUserInterfaceStyle -> UIKit.UITraitCollection

パラメーター

userInterfaceStyle
UIUserInterfaceStyle

新しい特性コレクションを関連付けるユーザー インターフェイス スタイル。

戻り値

指定したユーザー インターフェイス スタイルに関連付けられた新しい特性コレクション。

属性

適用対象