Language

IInputFilterExtensions.Filter Method

Definition

Filters a proposed string replacement for a destination text range.

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

Parameters

self
IInputFilter

The input filter to invoke.

source
String

The string that contains the proposed replacement.

start
Int32

The first source character index in the proposed replacement.

end
Int32

The exclusive end index of the proposed source range.

dest
ISpanned

The current text in the destination buffer.

dstart
Int32

The first destination character offset being replaced.

dend
Int32

The exclusive end offset of the replaced destination range.

Returns

The filter's replacement as a string, or null to accept the original replacement unchanged.

Remarks

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