UIFont.FromDescriptor(UIFontDescriptor, NFloat) Method

Definition

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.

Applies to