WKInterfaceButton.SetTitle Method

Definition

Overloads

SetTitle(NSAttributedString)

Sets the title to formatted text.

SetTitle(String)

Sets the title text of the button.

SetTitle(NSAttributedString)

Sets the title to formatted text.

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

Parameters

attributedTitle
NSAttributedString

The formatted text to be displayed.

This parameter can be null.

Attributes

Remarks

The attributedTitle may not contain any NSTextAttachment objects.

Applies to

SetTitle(String)

Sets the title text of the button.

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

Parameters

title
String

The text to be displayed on the button.

This parameter can be null.

Attributes

Applies to