UIFont.FromName(String, NFloat) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.