Compartir a través de


WKInterfaceButton.SetTitle Método

Definición

Sobrecargas

SetTitle(NSAttributedString)

Establece el título en texto con formato.

SetTitle(String)

Establece el texto del título del botón.

SetTitle(NSAttributedString)

Establece el título en texto con formato.

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

Parámetros

attributedTitle
NSAttributedString

Texto con formato que se va a mostrar.

Este parámetro puede ser null.

Atributos

Comentarios

attributedTitle Puede que no contenga ningún NSTextAttachment objeto .

Se aplica a

SetTitle(String)

Establece el texto del título del botón.

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

Parámetros

title
String

Texto que se va a mostrar en el botón.

Este parámetro puede ser null.

Atributos

Se aplica a