Partager via


WKInterfaceButton.SetTitle Méthode

Définition

Surcharges

SetTitle(NSAttributedString)

Définit le titre sur du texte mis en forme.

SetTitle(String)

Définit le texte de titre du bouton.

SetTitle(NSAttributedString)

Définit le titre sur du texte mis en forme.

[Foundation.Export("setAttributedTitle:")]
public virtual void SetTitle(Foundation.NSAttributedString attributedTitle);
abstract member SetTitle : Foundation.NSAttributedString -> unit
override this.SetTitle : Foundation.NSAttributedString -> unit

Paramètres

attributedTitle
NSAttributedString

Texte mis en forme à afficher.

Ce paramètre peut être null.

Attributs

Remarques

Le attributedTitle ne peut contenir aucun NSTextAttachment objet.

S’applique à

SetTitle(String)

Définit le texte de titre du bouton.

[Foundation.Export("setTitle:")]
public virtual void SetTitle(string title);
abstract member SetTitle : string -> unit
override this.SetTitle : string -> unit

Paramètres

title
String

Texte à afficher sur le bouton.

Ce paramètre peut être null.

Attributs

S’applique à