編輯

共用方式為


WKInterfaceLabel.SetText Method

Definition

Overloads

SetText(NSAttributedString)
SetText(String)

Sets the text of the label.

SetText(NSAttributedString)

[Foundation.Export("setAttributedText:")]
public virtual void SetText (Foundation.NSAttributedString attributedText);
abstract member SetText : Foundation.NSAttributedString -> unit
override this.SetText : Foundation.NSAttributedString -> unit

Parameters

attributedText
NSAttributedString

To be added.

This parameter can be null.

Attributes

Applies to

SetText(String)

Sets the text of the label.

[Foundation.Export("setText:")]
public virtual void SetText (string text);
abstract member SetText : string -> unit
override this.SetText : string -> unit

Parameters

text
String

The text to display.

This parameter can be null.

Attributes

Applies to