Compartir a través de


Switch.TextOnFormatted Property

Definition

Returns the text displayed when the button is in the checked state. -or- Sets the text displayed when the button is in the checked state.

public virtual Java.Lang.ICharSequence? TextOnFormatted { [Android.Runtime.Register("getTextOn", "()Ljava/lang/CharSequence;", "GetGetTextOnHandler")] get; [Android.Runtime.Register("setTextOn", "(Ljava/lang/CharSequence;)V", "GetSetTextOn_Ljava_lang_CharSequence_Handler")] set; }
[<get: Android.Runtime.Register("getTextOn", "()Ljava/lang/CharSequence;", "GetGetTextOnHandler")>]
[<set: Android.Runtime.Register("setTextOn", "(Ljava/lang/CharSequence;)V", "GetSetTextOn_Ljava_lang_CharSequence_Handler")>]
member this.TextOnFormatted : Java.Lang.ICharSequence with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Returns the text displayed when the button is in the checked state.

Java documentation for android.widget.Switch.getTextOn().

Property setter documentation:

Sets the text displayed when the button is in the checked state.

Java documentation for android.widget.Switch.setTextOn(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