TextView.SetText TextView.SetText Method

Definition

Overloads

SetText(Int32) SetText(Int32)
SetText(ICharSequence, TextView+BufferType) SetText(ICharSequence, TextView+BufferType)

Sets the text that this TextView is to display (see TextFormatted) and also sets whether it is stored in a styleable/spannable buffer and whether it is editable.

SetText(Int32, TextView+BufferType) SetText(Int32, TextView+BufferType)
SetText(String, TextView+BufferType) SetText(String, TextView+BufferType)
SetText(Char[], Int32, Int32) SetText(Char[], Int32, Int32)

Sets the TextView to display the specified slice of the specified char array.

SetText(Int32) SetText(Int32)

[Android.Runtime.Register("setText", "(I)V", "")]
public void SetText (int resid);
member this.SetText : int -> unit

Parameters

resid
Int32 Int32

Remarks

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.

SetText(ICharSequence, TextView+BufferType) SetText(ICharSequence, TextView+BufferType)

Sets the text that this TextView is to display (see TextFormatted) and also sets whether it is stored in a styleable/spannable buffer and whether it is editable.

[Android.Runtime.Register("setText", "(Ljava/lang/CharSequence;Landroid/widget/TextView$BufferType;)V", "GetSetText_Ljava_lang_CharSequence_Landroid_widget_TextView_BufferType_Handler")]
public virtual void SetText (Java.Lang.ICharSequence text, Android.Widget.TextView.BufferType type);
abstract member SetText : Java.Lang.ICharSequence * Android.Widget.TextView.BufferType -> unit
override this.SetText : Java.Lang.ICharSequence * Android.Widget.TextView.BufferType -> unit

Parameters

Remarks

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.

SetText(Int32, TextView+BufferType) SetText(Int32, TextView+BufferType)

[Android.Runtime.Register("setText", "(ILandroid/widget/TextView$BufferType;)V", "")]
public void SetText (int resid, Android.Widget.TextView.BufferType type);
member this.SetText : int * Android.Widget.TextView.BufferType -> unit

Parameters

resid
Int32 Int32

Remarks

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.

SetText(String, TextView+BufferType) SetText(String, TextView+BufferType)

public void SetText (string text, Android.Widget.TextView.BufferType type);
member this.SetText : string * Android.Widget.TextView.BufferType -> unit

Parameters

text
String String

Remarks

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.

SetText(Char[], Int32, Int32) SetText(Char[], Int32, Int32)

Sets the TextView to display the specified slice of the specified char array.

[Android.Runtime.Register("setText", "([CII)V", "")]
public void SetText (char[] text, int start, int len);
member this.SetText : char[] * int * int -> unit

Parameters

text
Char[]
start
Int32 Int32
len
Int32 Int32

Remarks

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