SKLabelNode.FromText 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 |
|---|---|
| FromText(NSAttributedString) | |
| FromText(String) |
FromText(NSAttributedString)
[Foundation.Export("labelNodeWithAttributedText:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static SpriteKit.SKLabelNode FromText(Foundation.NSAttributedString? attributedText);
[<Foundation.Export("labelNodeWithAttributedText:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromText : Foundation.NSAttributedString -> SpriteKit.SKLabelNode
Parameters
- attributedText
- NSAttributedString
Returns
- Attributes
Applies to
FromText(String)
[Foundation.Export("labelNodeWithText:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static SpriteKit.SKLabelNode FromText(string? text);
[<Foundation.Export("labelNodeWithText:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromText : string -> SpriteKit.SKLabelNode
Parameters
- text
- String
Returns
- Attributes