UISwitch.On Property

Definition

This property returns if the state of the switch is on or off.

public virtual bool On { [Foundation.Export("isOn")] get; [Foundation.Export("setOn:")] set; }
member this.On : bool with get, set

Property Value

Attributes

Remarks

Setting the property changes the state of the switch without an animation.

Applies to