다음을 통해 공유


SearchIterator.MatchedText Property

Definition

Returns the text that was matched by the most recent call to #first, #next, #previous, or #last.

public virtual string? MatchedText { [Android.Runtime.Register("getMatchedText", "()Ljava/lang/String;", "GetGetMatchedTextHandler", ApiSince=24)] get; }
[<get: Android.Runtime.Register("getMatchedText", "()Ljava/lang/String;", "GetGetMatchedTextHandler", ApiSince=24)>]
member this.MatchedText : string

Property Value

the substring in the target test of the most recent match, or null if there is no match currently.

Attributes

Remarks

Returns the text that was matched by the most recent call to #first, #next, #previous, or #last. If the iterator is not pointing at a valid match (e.g. just after construction or after #DONE has been returned, returns an empty string.

Java documentation for android.icu.text.SearchIterator.getMatchedText().

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