String.SubSequenceFormatted(Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個字元序列,該序列是該序列的子序列。
[Android.Runtime.Register("subSequence", "(II)Ljava/lang/CharSequence;", "")]
public Java.Lang.ICharSequence SubSequenceFormatted(int beginIndex, int endIndex);
[<Android.Runtime.Register("subSequence", "(II)Ljava/lang/CharSequence;", "")>]
abstract member SubSequenceFormatted : int * int -> Java.Lang.ICharSequence
override this.SubSequenceFormatted : int * int -> Java.Lang.ICharSequence
參數
- beginIndex
- Int32
包含Begin索引。
- endIndex
- Int32
末端索引,獨家。
傳回
指定的子序列。
實作
- 屬性
例外狀況
若 start 、 end 、 或 start > endend > length()。
備註
回傳一個字元序列,該序列是該序列的子序列。
此方法形式的引用
<引用>
str.subSequence(begin, end)
</區塊引用>
行為與召喚完全相同
<引用>
str.substring(begin, end)
</區塊引用>
在 1.4 版本加入。
Java 文件 java.lang.String.subSequence(int, int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
另請參閱
- <xref:Java.Lang.ICharSequence.SubSequenceFormatted(System.Int32%2c+System.Int32)>