UIFont.FromDescriptor(UIFontDescriptor, 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 UIFont from the specified font descriptor.
public static UIKit.UIFont FromDescriptor(UIKit.UIFontDescriptor descriptor, System.Runtime.InteropServices.NFloat pointSize);
public static UIKit.UIFont? FromDescriptor(UIKit.UIFontDescriptor descriptor, System.Runtime.InteropServices.NFloat pointSize);
static member FromDescriptor : UIKit.UIFontDescriptor * System.Runtime.InteropServices.NFloat -> UIKit.UIFont
Parameters
- descriptor
- UIFontDescriptor
The font descriptor describing the font to create.
- pointSize
- NFloat
The point size of the font to create. If 0, the size from the descriptor is used.
Returns
A new UIFont based on the descriptor, or null if the font could not be created.
Remarks
This can be used from a background thread.