UITraitCollection.GetTraitCollectionWithValue 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.
Overloads
| Name | Description |
|---|---|
| GetTraitCollectionWithValue(IntPtr, IUINSIntegerTraitDefinition) | |
| GetTraitCollectionWithValue(NFloat, IUICGFloatTraitDefinition) |
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