Edytuj

Udostępnij za pośrednictwem


UIFontDescriptor.CreateWithTraits(UIFontDescriptorSymbolicTraits) Method

Definition

Creates a new UIFontDescriptor based on setting a new symbolic traits to the current descriptor.

[Foundation.Export("fontDescriptorWithSymbolicTraits:")]
public virtual UIKit.UIFontDescriptor CreateWithTraits (UIKit.UIFontDescriptorSymbolicTraits symbolicTraits);
abstract member CreateWithTraits : UIKit.UIFontDescriptorSymbolicTraits -> UIKit.UIFontDescriptor
override this.CreateWithTraits : UIKit.UIFontDescriptorSymbolicTraits -> UIKit.UIFontDescriptor

Parameters

symbolicTraits
UIFontDescriptorSymbolicTraits

New desired stylistic traits for the descriptor.

Returns

New UIFontDescriptor containing the added symbolic traits.

Attributes

Remarks

Traits include attributes like bold, italic, condensed, monospace, vertical, optimized for the UI,

This can be used from a background thread.

Applies to