WKInterfaceSwitch.SetTitle Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- Attributes