InputFilterLengthFilter.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.
Limits a proposed replacement to the permitted text length.
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
Parameters
- 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
A shortened replacement, an empty string when no inserted text fits, 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.