TextView.OnTextChanged TextView.OnTextChanged Method

Definition

Overloads

OnTextChanged(ICharSequence, Int32, Int32, Int32) OnTextChanged(ICharSequence, Int32, Int32, Int32)

This method is called when the text is changed, in case any subclasses would like to know.

OnTextChanged(String, Int32, Int32, Int32) OnTextChanged(String, Int32, Int32, Int32)

OnTextChanged(ICharSequence, Int32, Int32, Int32) OnTextChanged(ICharSequence, Int32, Int32, Int32)

This method is called when the text is changed, in case any subclasses would like to know.

[Android.Runtime.Register("onTextChanged", "(Ljava/lang/CharSequence;III)V", "GetOnTextChanged_Ljava_lang_CharSequence_IIIHandler")]
protected virtual void OnTextChanged (Java.Lang.ICharSequence text, int start, int lengthBefore, int lengthAfter);
abstract member OnTextChanged : Java.Lang.ICharSequence * int * int * int -> unit
override this.OnTextChanged : Java.Lang.ICharSequence * int * int * int -> unit

Parameters

text
ICharSequence ICharSequence

The text the TextView is displaying

start
Int32 Int32

The offset of the start of the range of the text that was modified

lengthBefore
Int32 Int32

The length of the former text that has been replaced

lengthAfter
Int32 Int32

The length of the replacement modified text

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.

OnTextChanged(String, Int32, Int32, Int32) OnTextChanged(String, Int32, Int32, Int32)

protected void OnTextChanged (string text, int start, int lengthBefore, int lengthAfter);
member this.OnTextChanged : string * int * int * int -> unit

Parameters

text
String String
start
Int32 Int32
lengthBefore
Int32 Int32
lengthAfter
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