UIFontMetrics.GetScaledValue 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
GetScaledValue(nfloat) |
Returns a layout height that is scaled from the current Dynamic Type settings. |
GetScaledValue(nfloat, UITraitCollection) |
Returns a layout height that is scaled from the current Dynamic Type settings. |
GetScaledValue(nfloat)
Returns a layout height that is scaled from the current Dynamic Type settings.
[Foundation.Export("scaledValueForValue:")]
public virtual nfloat GetScaledValue (nfloat value);
abstract member GetScaledValue : nfloat -> nfloat
override this.GetScaledValue : nfloat -> nfloat
Parameters
- value
- nfloat
The height of an object that would contain the text at the standard size of Dynamic Type.
Returns
- Attributes
Applies to
GetScaledValue(nfloat, UITraitCollection)
Returns a layout height that is scaled from the current Dynamic Type settings.
[Foundation.Export("scaledValueForValue:compatibleWithTraitCollection:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual nfloat GetScaledValue (nfloat value, UIKit.UITraitCollection traitCollection);
abstract member GetScaledValue : nfloat * UIKit.UITraitCollection -> nfloat
override this.GetScaledValue : nfloat * UIKit.UITraitCollection -> nfloat
Parameters
- value
- nfloat
The height of an object that would contain the text at the standard size of Dynamic Type.
- traitCollection
- UITraitCollection
The trait collection to use to calculate the scaled value.
This parameter can be null
.
Returns
- Attributes