Edit

Share via


WKInterfaceSwitch.SetTitle Method

Definition

Overloads

SetTitle(NSAttributedString)

Sets the title of the switch to formatted text.

SetTitle(String)

Sets the title of the switch.

SetTitle(NSAttributedString)

Sets the title of the switch 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 of the switch's title.

This parameter can be null.

Attributes

Applies to

SetTitle(String)

Sets the title of the switch.

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

Parameters

title
String

The text of the switch's title.

This parameter can be null.

Attributes

Applies to