UIFontMetrics.GetScaledValue 方法

定义

重载

GetScaledValue(nfloat)

返回从当前动态类型设置缩放的布局高度。

GetScaledValue(nfloat, UITraitCollection)

返回从当前动态类型设置缩放的布局高度。

GetScaledValue(nfloat)

返回从当前动态类型设置缩放的布局高度。

[Foundation.Export("scaledValueForValue:")]
public virtual nfloat GetScaledValue (nfloat value);
abstract member GetScaledValue : nfloat -> nfloat
override this.GetScaledValue : nfloat -> nfloat

参数

value
nfloat

对象的高度,该对象将包含标准大小的动态类型的文本。

返回

属性

适用于

GetScaledValue(nfloat, UITraitCollection)

返回从当前动态类型设置缩放的布局高度。

[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

参数

value
nfloat

对象的高度,该对象将包含标准大小的动态类型的文本。

traitCollection
UITraitCollection

用于计算缩放值的特征集合。

此参数可以为 null

返回

属性

适用于