Share via


UITraitCollection.GetTraitCollectionWithValue Method

Definition

Overloads

GetTraitCollectionWithValue(IntPtr, IUINSIntegerTraitDefinition)

[Foundation.Export("traitCollectionWithNSIntegerValue:forTrait:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UIKit.UITraitCollection GetTraitCollectionWithValue(IntPtr value, UIKit.IUINSIntegerTraitDefinition trait);
[<Foundation.Export("traitCollectionWithNSIntegerValue:forTrait:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member GetTraitCollectionWithValue : nativeint * UIKit.IUINSIntegerTraitDefinition -> UIKit.UITraitCollection

Parameters

value
IntPtr

nativeint

Returns

Attributes

Applies to

GetTraitCollectionWithValue(NFloat, IUICGFloatTraitDefinition)

[Foundation.Export("traitCollectionWithCGFloatValue:forTrait:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UIKit.UITraitCollection GetTraitCollectionWithValue(System.Runtime.InteropServices.NFloat value, UIKit.IUICGFloatTraitDefinition trait);
[<Foundation.Export("traitCollectionWithCGFloatValue:forTrait:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member GetTraitCollectionWithValue : System.Runtime.InteropServices.NFloat * UIKit.IUICGFloatTraitDefinition -> UIKit.UITraitCollection

Parameters

value
NFloat

Returns

Attributes

Applies to