UIFontDescriptor.CreateWithTraits(UIFontDescriptorSymbolicTraits) 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 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.