UIFont.FromName(String, NFloat) Method

Definition

Creates a font with the specified name and size.

public static UIKit.UIFont FromName(string name, System.Runtime.InteropServices.NFloat size);
public static UIKit.UIFont? FromName(string name, System.Runtime.InteropServices.NFloat size);
static member FromName : string * System.Runtime.InteropServices.NFloat -> UIKit.UIFont

Parameters

name
String

The name of the font to create.

size
NFloat

The size of the font in points.

Returns

A new UIFont with the specified name and size, or null if the font could not be found.

Remarks

This can be used from a background thread.

Applies to