LoginFilter.FilterFormatted Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This method is called when the buffer is going to replace the
range dstart … dend
of dest
with the new text from the range start … end
of source
.
[Android.Runtime.Register("filter", "(Ljava/lang/CharSequence;IILandroid/text/Spanned;II)Ljava/lang/CharSequence;", "GetFilter_Ljava_lang_CharSequence_IILandroid_text_Spanned_IIHandler")]
public virtual Java.Lang.ICharSequence? FilterFormatted (Java.Lang.ICharSequence? source, int start, int end, Android.Text.ISpanned? dest, int dstart, int dend);
[<Android.Runtime.Register("filter", "(Ljava/lang/CharSequence;IILandroid/text/Spanned;II)Ljava/lang/CharSequence;", "GetFilter_Ljava_lang_CharSequence_IILandroid_text_Spanned_IIHandler")>]
abstract member FilterFormatted : Java.Lang.ICharSequence * int * int * Android.Text.ISpanned * int * int -> Java.Lang.ICharSequence
override this.FilterFormatted : Java.Lang.ICharSequence * int * int * Android.Text.ISpanned * int * int -> Java.Lang.ICharSequence
Parameters
- source
- ICharSequence
- start
- Int32
- end
- Int32
- dest
- ISpanned
- dstart
- Int32
- dend
- Int32
Returns
Implements
- Attributes
Remarks
This method is called when the buffer is going to replace the range dstart … dend
of dest
with the new text from the range start … end
of source
. Returns the CharSequence that we want placed there instead, including an empty string if appropriate, or null
to accept the original replacement. Be careful to not to reject 0-length replacements, as this is what happens when you delete text.
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.