Share via


UIFont.WithSize(NFloat) Method

Definition

Returns a new font based on the current one, with the new specified size.

public virtual UIKit.UIFont WithSize(System.Runtime.InteropServices.NFloat size);
abstract member WithSize : System.Runtime.InteropServices.NFloat -> UIKit.UIFont
override this.WithSize : System.Runtime.InteropServices.NFloat -> UIKit.UIFont

Parameters

size
NFloat

The new font size (in points).

Returns

The new font at the specified size.

Remarks

This can be used from a background thread.

Applies to