SearchIterator.MatchLength 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳與搜尋模式相符的字串長度。
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
屬性值
目標文字中匹配的長度,或若目前沒有匹配則為 0。
- 屬性
備註
回傳與搜尋模式相符的字串長度。 此呼叫僅在成功呼叫 #first、 #next、 #previous或 #last後回傳有效結果。 在構造完畢後,或搜尋方法返回 #DONE後,該方法將返回 0。
Java 文件 android.icu.text.SearchIterator.getMatchLength()。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。