Szerkesztés

Megosztás a következőn keresztül:


UIFontMetrics.GetScaledFont Method

Definition

Overloads

GetScaledFont(UIFont)

Returns a version of a font that is scaled for the current metrics.

GetScaledFont(UIFont, nfloat)

Returns a version of a font that is scaled for the current metrics and constrained to the specified maximum point size.

GetScaledFont(UIFont, UITraitCollection)

Returns a version of a font that is scaled for the current metrics and trait collection.

GetScaledFont(UIFont, nfloat, UITraitCollection)

Returns a version of a font that is scaled for the current metrics and trait collection, and is constrained to the specified maximum point size.

GetScaledFont(UIFont)

Returns a version of a font that is scaled for the current metrics.

[Foundation.Export("scaledFontForFont:")]
public virtual UIKit.UIFont GetScaledFont (UIKit.UIFont font);
abstract member GetScaledFont : UIKit.UIFont -> UIKit.UIFont
override this.GetScaledFont : UIKit.UIFont -> UIKit.UIFont

Parameters

font
UIFont

The font for which to get a scaled version.

Returns

Attributes

Applies to

GetScaledFont(UIFont, nfloat)

Returns a version of a font that is scaled for the current metrics and constrained to the specified maximum point size.

[Foundation.Export("scaledFontForFont:maximumPointSize:")]
public virtual UIKit.UIFont GetScaledFont (UIKit.UIFont font, nfloat maximumPointSize);
abstract member GetScaledFont : UIKit.UIFont * nfloat -> UIKit.UIFont
override this.GetScaledFont : UIKit.UIFont * nfloat -> UIKit.UIFont

Parameters

font
UIFont

The font for which to get a scaled version.

maximumPointSize
nfloat

The maximum point size of the returned scaled font.

Returns

Attributes

Applies to

GetScaledFont(UIFont, UITraitCollection)

Returns a version of a font that is scaled for the current metrics and trait collection.

[Foundation.Export("scaledFontForFont:compatibleWithTraitCollection:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIFont GetScaledFont (UIKit.UIFont font, UIKit.UITraitCollection traitCollection);
abstract member GetScaledFont : UIKit.UIFont * UIKit.UITraitCollection -> UIKit.UIFont
override this.GetScaledFont : UIKit.UIFont * UIKit.UITraitCollection -> UIKit.UIFont

Parameters

font
UIFont

The font for which to get a scaled version.

traitCollection
UITraitCollection

The trait collection for which to get a scaled font.

This parameter can be null.

Returns

Attributes

Applies to

GetScaledFont(UIFont, nfloat, UITraitCollection)

Returns a version of a font that is scaled for the current metrics and trait collection, and is constrained to the specified maximum point size.

[Foundation.Export("scaledFontForFont:maximumPointSize:compatibleWithTraitCollection:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIFont GetScaledFont (UIKit.UIFont font, nfloat maximumPointSize, UIKit.UITraitCollection traitCollection);
abstract member GetScaledFont : UIKit.UIFont * nfloat * UIKit.UITraitCollection -> UIKit.UIFont
override this.GetScaledFont : UIKit.UIFont * nfloat * UIKit.UITraitCollection -> UIKit.UIFont

Parameters

font
UIFont

The font for which to get a scaled version.

maximumPointSize
nfloat

The maximum point size of the returned scaled font.

traitCollection
UITraitCollection

The trait collection for which to get a scaled font.

This parameter can be null.

Returns

Attributes

Applies to