UITraitCollection.GetValueForTrait 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 |
|---|---|
| GetValueForTrait(IUICGFloatTraitDefinition) | |
| GetValueForTrait(IUINSIntegerTraitDefinition) |
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