SurroundingText 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| SurroundingText(ICharSequence, Int32, Int32, Int32) |
構造 函數。 |
| SurroundingText(String, Int32, Int32, Int32) |
SurroundingText(ICharSequence, Int32, Int32, Int32)
構造 函數。
[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;III)V", "", ApiSince=31)]
public SurroundingText(Java.Lang.ICharSequence text, int selectionStart, int selectionEnd, int offset);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;III)V", "", ApiSince=31)>]
new Android.Views.InputMethods.SurroundingText : Java.Lang.ICharSequence * int * int * int -> Android.Views.InputMethods.SurroundingText
參數
- text
- ICharSequence
周圍的文字。
- selectionStart
- Int32
是選取開始點在周圍文字中的文字偏移。 允許反向選擇。
- selectionEnd
- Int32
選取結束時的文字偏移,會顯示在周圍文字中。 允許反向選擇。
- offset
- Int32
編輯器文字開頭與周圍文字開頭之間的文字偏移。 -1 表示偏移量未知。
- 屬性
備註
構造 函數。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
SurroundingText(String, Int32, Int32, Int32)
[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;III)V", "", ApiSince=31)]
public SurroundingText(string text, int selectionStart, int selectionEnd, int offset);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;III)V", "", ApiSince=31)>]
new Android.Views.InputMethods.SurroundingText : string * int * int * int -> Android.Views.InputMethods.SurroundingText
參數
- text
- String
- selectionStart
- Int32
- selectionEnd
- Int32
- offset
- Int32
- 屬性