Compartilhar via


AutoCompleteTextView.ReplaceText Method

Definition

Overloads

ReplaceText(String)

Performs the text completion by replacing the current text by the selected item.

ReplaceText(ICharSequence)

Performs the text completion by replacing the current text by the selected item.

ReplaceText(String)

Performs the text completion by replacing the current text by the selected item.

protected void ReplaceText (string? text);
member this.ReplaceText : string -> unit

Parameters

text
String

the selected suggestion in the drop down list

Remarks

Performs the text completion by replacing the current text by the selected item. Subclasses should override this method to avoid replacing the whole content of the edit box.

Java documentation for android.widget.AutoCompleteTextView.replaceText(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

ReplaceText(ICharSequence)

Performs the text completion by replacing the current text by the selected item.

[Android.Runtime.Register("replaceText", "(Ljava/lang/CharSequence;)V", "GetReplaceText_Ljava_lang_CharSequence_Handler")]
protected virtual void ReplaceText (Java.Lang.ICharSequence? text);
[<Android.Runtime.Register("replaceText", "(Ljava/lang/CharSequence;)V", "GetReplaceText_Ljava_lang_CharSequence_Handler")>]
abstract member ReplaceText : Java.Lang.ICharSequence -> unit
override this.ReplaceText : Java.Lang.ICharSequence -> unit

Parameters

text
ICharSequence

the selected suggestion in the drop down list

Attributes

Remarks

Performs the text completion by replacing the current text by the selected item. Subclasses should override this method to avoid replacing the whole content of the edit box.

Java documentation for android.widget.AutoCompleteTextView.replaceText(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