共用方式為


UITraitCollection.FromDisplayGamut(UIDisplayGamut) 方法

定義

靜態處理站方法,可建立適合指定 displayGamut 之 的新 UITraitCollection

[Foundation.Export("traitCollectionWithDisplayGamut:")]
[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 FromDisplayGamut (UIKit.UIDisplayGamut displayGamut);
static member FromDisplayGamut : UIKit.UIDisplayGamut -> UIKit.UITraitCollection

參數

displayGamut
UIDisplayGamut

傳回

屬性

適用於