Partager via


SearchIterator.SetMatchLength(Int32) Method

Definition

Sets the length of the most recent match in the target text.

[Android.Runtime.Register("setMatchLength", "(I)V", "GetSetMatchLength_IHandler", ApiSince=24)]
protected virtual void SetMatchLength (int length);
[<Android.Runtime.Register("setMatchLength", "(I)V", "GetSetMatchLength_IHandler", ApiSince=24)>]
abstract member SetMatchLength : int -> unit
override this.SetMatchLength : int -> unit

Parameters

length
Int32

new length to set

Attributes

Remarks

Sets the length of the most recent match in the target text. Subclasses' handleNext() and handlePrevious() methods should call this after they find a match in the target text.

Java documentation for android.icu.text.SearchIterator.setMatchLength(int).

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