語言

PhoneNumberFormattingTextWatcher.BeforeTextChanged 方法

定義

多載

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

此方法被呼叫時,通知您,在 s中,從 開始的countstart字元即將被長度after為 的新文字取代。

BeforeTextChanged(String, Int32, Int32, Int32)

在電話號碼編輯前檢查被替換的文字。

BeforeTextChanged(ICharSequence, Int32, Int32, Int32)

此方法被呼叫時,通知您,在 s中,從 開始的countstart字元即將被長度after為 的新文字取代。

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

參數

s
ICharSequence

替換前的文字。

start
Int32

替換將開始的零基指數。

count
Int32

現有角色的數量。

after
Int32

替換字元的數量。

實作

屬性

備註

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

適用於

BeforeTextChanged(String, Int32, Int32, Int32)

在電話號碼編輯前檢查被替換的文字。

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

參數

s
String

替換前的文字。

start
Int32

替換將開始的零基指數。

count
Int32

現有角色的數量。

after
Int32

替換字元的數量。

備註

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

適用於