語言

PhoneNumberFormattingTextWatcher.OnTextChanged 方法

定義

多載

名稱 Description
OnTextChanged(ICharSequence, Int32, Int32, Int32)

此方法被呼叫用來通知你,在 s中,從 開始的countstart字元剛剛替換了長度before為 的舊文字。

OnTextChanged(String, Int32, Int32, Int32)

檢查新插入的電話號碼文字是否有停止自動格式化的字元。

OnTextChanged(ICharSequence, Int32, Int32, Int32)

此方法被呼叫用來通知你,在 s中,從 開始的countstart字元剛剛替換了長度before為 的舊文字。

[Android.Runtime.Register("onTextChanged", "(Ljava/lang/CharSequence;III)V", "GetOnTextChanged_Ljava_lang_CharSequence_IIIHandler")]
public virtual void OnTextChanged(Java.Lang.ICharSequence? s, int start, int before, int count);
[<Android.Runtime.Register("onTextChanged", "(Ljava/lang/CharSequence;III)V", "GetOnTextChanged_Ljava_lang_CharSequence_IIIHandler")>]
abstract member OnTextChanged : Java.Lang.ICharSequence * int * int * int -> unit
override this.OnTextChanged : Java.Lang.ICharSequence * int * int * int -> unit

參數

s
ICharSequence

替換後的簡訊。

start
Int32

替換起點的零基指數。

before
Int32

刪除的字元數量。

count
Int32

插入的字元數。

實作

屬性

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

OnTextChanged(String, Int32, Int32, Int32)

檢查新插入的電話號碼文字是否有停止自動格式化的字元。

public void OnTextChanged(string? s, int start, int before, int count);
member this.OnTextChanged : string * int * int * int -> unit

參數

s
String

替換後的簡訊。

start
Int32

替換起點的零基指數。

before
Int32

刪除的字元數量。

count
Int32

插入的字元數。

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於