UIFontDescriptor.CreateWithAttributes 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.
Overloads
| Name | Description |
|---|---|
| CreateWithAttributes(NSDictionary) | |
| CreateWithAttributes(UIFontAttributes) |
Creates a new UIFontDescriptor based on adding the provided attributes to the current descriptor. |
CreateWithAttributes(NSDictionary)
[Foundation.Export("fontDescriptorByAddingAttributes:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual UIKit.UIFontDescriptor CreateWithAttributes(Foundation.NSDictionary attributes);
[<Foundation.Export("fontDescriptorByAddingAttributes:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CreateWithAttributes : Foundation.NSDictionary -> UIKit.UIFontDescriptor
override this.CreateWithAttributes : Foundation.NSDictionary -> UIKit.UIFontDescriptor
Parameters
- attributes
- NSDictionary
Returns
- Attributes
Applies to
CreateWithAttributes(UIFontAttributes)
Creates a new UIFontDescriptor based on adding the provided attributes to the current descriptor.
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public UIKit.UIFontDescriptor CreateWithAttributes(UIKit.UIFontAttributes attributes);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
member this.CreateWithAttributes : UIKit.UIFontAttributes -> UIKit.UIFontDescriptor
Parameters
- attributes
- UIFontAttributes
dictionary containing the attributes.
Returns
New UIFontDescriptor containing the added attributes.
- Attributes
Remarks
This can be used from a background thread.