共用方式為


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

傳回

屬性

適用於