FormattedNumberRange.SubSequence(Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
以管理字串的形式回傳部分格式化範圍。
public string? SubSequence(int start, int end);
member this.SubSequence : int * int -> string
參數
- start
- Int32
首個包含的 UTF-16 編碼單元的零基索引。
- end
- Int32
緊接著最後一個 UTF-16 編碼單元後的以零為基礎的索引。
傳回
從 SubSequenceFormatted(Int32, Int32)的字串轉換結果,或 null 若該方法返回 null。
備註
此 .NET 便利方法會呼叫SubSequenceFormatted(start, end)並將結果轉換成字串。 起始指數已包含;末端索引被排除。 等索引則選擇空序列。
Java 文件 android.icu.number.FormattedNumberRange.subSequence(int, int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。