語言

LoginFilter.Filter(String, Int32, Int32, ISpanned, Int32, Int32) 方法

定義

當緩衝區將 的dest範圍dstart … dend替換為 的新文字start … endsource時,會呼叫此方法。

public string? Filter(string? source, int start, int end, Android.Text.ISpanned? dest, int dstart, int dend);
member this.Filter : string * int * int * Android.Text.ISpanned * int * int -> string

參數

source
String
start
Int32
end
Int32
dest
ISpanned
dstart
Int32
dend
Int32

傳回

備註

當緩衝區將 的dest範圍dstart … dend替換為 的新文字start … endsource時,會呼叫此方法。 回傳我們希望放入該處的 CharSequence,若適當則包含空字串,或 null 接受原始替換。 要小心不要拒絕 0 長的替換,因為刪除文字會發生這種情況。

Java 文件 android.text.LoginFilter.filter(java.lang.CharSequence, int, int, android.text.Spanned, int, int)

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

適用於