Share via


UIFontDescriptor.GetPreferredDescriptorForTextStyle Method

Definition

Overloads

Name Description
GetPreferredDescriptorForTextStyle(NSString)
GetPreferredDescriptorForTextStyle(UIFontTextStyle)

Weakly-typed version of an API used to retrieve the user's desired font size.

GetPreferredDescriptorForTextStyle(NSString, UITraitCollection)
GetPreferredDescriptorForTextStyle(UIFontTextStyle, UITraitCollection)

Returns the preferred font descriptor for the specified style and trait collection.

GetPreferredDescriptorForTextStyle(NSString)

[Foundation.Export("preferredFontDescriptorWithTextStyle:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UIKit.UIFontDescriptor GetPreferredDescriptorForTextStyle(Foundation.NSString uiFontTextStyle);
[<Foundation.Export("preferredFontDescriptorWithTextStyle:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member GetPreferredDescriptorForTextStyle : Foundation.NSString -> UIKit.UIFontDescriptor

Parameters

uiFontTextStyle
NSString

Returns

Attributes

Applies to

GetPreferredDescriptorForTextStyle(UIFontTextStyle)

Weakly-typed version of an API used to retrieve the user's desired font size.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UIKit.UIFontDescriptor GetPreferredDescriptorForTextStyle(UIKit.UIFontTextStyle uiFontTextStyle);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member GetPreferredDescriptorForTextStyle : UIKit.UIFontTextStyle -> UIKit.UIFontDescriptor

Parameters

uiFontTextStyle
UIFontTextStyle

Name of one of the built-in system text styles.

Returns

Attributes

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

Applies to

GetPreferredDescriptorForTextStyle(NSString, UITraitCollection)

[Foundation.Export("preferredFontDescriptorWithTextStyle:compatibleWithTraitCollection:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UIKit.UIFontDescriptor GetPreferredDescriptorForTextStyle(Foundation.NSString uiFontTextStyle, UIKit.UITraitCollection? traitCollection);
[<Foundation.Export("preferredFontDescriptorWithTextStyle:compatibleWithTraitCollection:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member GetPreferredDescriptorForTextStyle : Foundation.NSString * UIKit.UITraitCollection -> UIKit.UIFontDescriptor

Parameters

uiFontTextStyle
NSString
traitCollection
UITraitCollection

Returns

Attributes

Applies to

GetPreferredDescriptorForTextStyle(UIFontTextStyle, UITraitCollection)

Returns the preferred font descriptor for the specified style and trait collection.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UIKit.UIFontDescriptor GetPreferredDescriptorForTextStyle(UIKit.UIFontTextStyle uiFontTextStyle, UIKit.UITraitCollection? traitCollection);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member GetPreferredDescriptorForTextStyle : UIKit.UIFontTextStyle * UIKit.UITraitCollection -> UIKit.UIFontDescriptor

Parameters

uiFontTextStyle
UIFontTextStyle

Name of one of the built-in system text styles.

traitCollection
UITraitCollection

The trait collection for which to get the preferred font descriptor.

This parameter can be null.

Returns

Attributes

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

Applies to