Compartilhar via


SKLabelNode.FromText Método

Definição

Sobrecargas

FromText(NSAttributedString)
FromText(String)

Cria um novo rótulo com o 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

A ser adicionado.

Esse parâmetro pode ser null.

Retornos

Atributos

Aplica-se a

FromText(String)

Cria um novo rótulo com o 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

A ser adicionado.

Esse parâmetro pode ser null.

Retornos

Atributos

Aplica-se a