Share via


UITraitCollection.GetValueForTrait Method

Definition

Overloads

GetValueForTrait(IUICGFloatTraitDefinition)

[Foundation.Export("valueForCGFloatTrait:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Runtime.InteropServices.NFloat GetValueForTrait(UIKit.IUICGFloatTraitDefinition trait);
[<Foundation.Export("valueForCGFloatTrait:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetValueForTrait : UIKit.IUICGFloatTraitDefinition -> System.Runtime.InteropServices.NFloat
override this.GetValueForTrait : UIKit.IUICGFloatTraitDefinition -> System.Runtime.InteropServices.NFloat

Parameters

Returns

Attributes

Applies to

GetValueForTrait(IUINSIntegerTraitDefinition)

[Foundation.Export("valueForNSIntegerTrait:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual IntPtr GetValueForTrait(UIKit.IUINSIntegerTraitDefinition trait);
[<Foundation.Export("valueForNSIntegerTrait:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetValueForTrait : UIKit.IUINSIntegerTraitDefinition -> nativeint
override this.GetValueForTrait : UIKit.IUINSIntegerTraitDefinition -> nativeint

Parameters

Returns

IntPtr

nativeint

Attributes

Applies to