语言

SearchIterator.MatchStart 属性

定义

返回搜索的文本字符串中的匹配项的索引。

public virtual int MatchStart { [Android.Runtime.Register("getMatchStart", "()I", "GetGetMatchStartHandler", ApiSince=24)] get; }
[<get: Android.Runtime.Register("getMatchStart", "()I", "GetGetMatchStartHandler", ApiSince=24)>]
member this.MatchStart : int

属性值

正在搜索的文本字符串中的子字符串的索引。

特性

注解

返回搜索的文本字符串中的匹配项的索引。 此调用仅在成功调用、#first#next或#previous调用#last后返回有效结果。 在构造后或搜索方法返回 #DONE后,此方法将返回 #DONE。

用于 #getMatchLength 获取匹配的字符串长度。

Java文档android.icu.text.SearchIterator.getMatchStart()。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于