Condividi tramite


SKLabelNode.FromText Metodo

Definizione

Overload

FromText(NSAttributedString)
FromText(String)

Crea una nuova etichetta con il testo specificato.

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

Parametri

attributedText
NSAttributedString

Da aggiungere.

Questo parametro può essere null.

Restituisce

Attributi

Si applica a

FromText(String)

Crea una nuova etichetta con il testo specificato.

[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

Parametri

text
String

Da aggiungere.

Questo parametro può essere null.

Restituisce

Attributi

Si applica a