SwitchPreference.SwitchTextOnFormatted Property

Definition

Set the text displayed on the switch widget in the on state.

public virtual Java.Lang.ICharSequence? SwitchTextOnFormatted { [Android.Runtime.Register("getSwitchTextOn", "()Ljava/lang/CharSequence;", "GetGetSwitchTextOnHandler")] get; [Android.Runtime.Register("setSwitchTextOn", "(Ljava/lang/CharSequence;)V", "GetSetSwitchTextOn_Ljava_lang_CharSequence_Handler")] set; }
[<get: Android.Runtime.Register("getSwitchTextOn", "()Ljava/lang/CharSequence;", "GetGetSwitchTextOnHandler")>]
[<set: Android.Runtime.Register("setSwitchTextOn", "(Ljava/lang/CharSequence;)V", "GetSetSwitchTextOn_Ljava_lang_CharSequence_Handler")>]
member this.SwitchTextOnFormatted : Java.Lang.ICharSequence with get, set

Property Value

The text that will be displayed on the switch widget in the on state

Attributes

Remarks

Property getter documentation:

Java documentation for android.preference.SwitchPreference.getSwitchTextOn().

Property setter documentation:

Set the text displayed on the switch widget in the on state. This should be a very short string; one word if possible.

Java documentation for android.preference.SwitchPreference.setSwitchTextOn(java.lang.CharSequence).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to