Share via


UIFontDescriptor.CreateWithSize(NFloat) Method

Definition

Creates a new UIFontDescriptor based on setting a new font size to the current descriptor.

[Foundation.Export("fontDescriptorWithSize:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual UIKit.UIFontDescriptor CreateWithSize(System.Runtime.InteropServices.NFloat newPointSize);
[<Foundation.Export("fontDescriptorWithSize:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CreateWithSize : System.Runtime.InteropServices.NFloat -> UIKit.UIFontDescriptor
override this.CreateWithSize : System.Runtime.InteropServices.NFloat -> UIKit.UIFontDescriptor

Parameters

newPointSize
NFloat

New desired font size for the descriptor.

Returns

New UIFontDescriptor containing the added font size.

Attributes

Remarks

This can be used from a background thread.

Applies to