SearchIterator.MatchLength Property
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.
Returns the length of text in the string which matches the search pattern.
public virtual int MatchLength { [Android.Runtime.Register("getMatchLength", "()I", "GetGetMatchLengthHandler", ApiSince=24)] get; }
[<get: Android.Runtime.Register("getMatchLength", "()I", "GetGetMatchLengthHandler", ApiSince=24)>]
member this.MatchLength : int
Property Value
The length of the match in the target text, or 0 if there is no match currently.
- Attributes
Remarks
Returns the length of text in the string which matches the search pattern. This call returns a valid result only after a successful call to #first
, #next
, #previous
, or #last
. Just after construction, or after a searching method returns #DONE
, this method will return 0.
Java documentation for android.icu.text.SearchIterator.getMatchLength()
.
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.