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
FromText(NSAttributedString) | |
FromText(String) |
Creates a new label with the specified text. |
FromText(NSAttributedString)
[Foundation.Export("labelNodeWithAttributedText:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static SpriteKit.SKLabelNode FromText (Foundation.NSAttributedString attributedText);
static member FromText : Foundation.NSAttributedString -> SpriteKit.SKLabelNode
Parameters
Returns
- Attributes
Applies to
FromText(String)
Creates a new label with the specified text.
[Foundation.Export("labelNodeWithText:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public static SpriteKit.SKLabelNode FromText (string text);
static member FromText : string -> SpriteKit.SKLabelNode
Parameters
Returns
- Attributes