IInputFilterExtensions.Filter 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.
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.