Compartir a través de


SKLabelNode.FromText Método

Definición

Sobrecargas

FromText(NSAttributedString)
FromText(String)

Crea una nueva etiqueta con el texto especificado.

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

Parámetros

attributedText
NSAttributedString

Se agregará.

Este parámetro puede ser null.

Devoluciones

Atributos

Se aplica a

FromText(String)

Crea una nueva etiqueta con el texto especificado.

[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

Parámetros

text
String

Se agregará.

Este parámetro puede ser null.

Devoluciones

Atributos

Se aplica a