InputConnectionWrapper.SetComposingRegion 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| SetComposingRegion(Int32, Int32) |
將某個區域標記為正在創作的文字。 |
| SetComposingRegion(Int32, Int32, TextAttribute) |
InputConnection.setComposingRegion(int,int) 的變體。 |
SetComposingRegion(Int32, Int32)
將某個區域標記為正在創作的文字。
[Android.Runtime.Register("setComposingRegion", "(II)Z", "GetSetComposingRegion_IIHandler")]
public virtual bool SetComposingRegion(int start, int end);
[<Android.Runtime.Register("setComposingRegion", "(II)Z", "GetSetComposingRegion_IIHandler")>]
abstract member SetComposingRegion : int * int -> bool
override this.SetComposingRegion : int * int -> bool
參數
- start
- Int32
書寫區域在文本中開始的位置
- end
- Int32
書寫區域在文本中結束的位置
傳回
目標連線回傳的值。
實作
- 屬性
備註
將某個區域標記為正在創作的文字。 如果存在排版區域,字元會保持原狀,並移除組寫範圍,就像已經呼叫 finishComposingText() 一樣。 使用預設的文字寫作風格。
Java 文件 android.view.inputmethod.InputConnectionWrapper.setComposingRegion(int, int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
SetComposingRegion(Int32, Int32, TextAttribute)
InputConnection.setComposingRegion(int,int) 的變體。
[Android.Runtime.Register("setComposingRegion", "(IILandroid/view/inputmethod/TextAttribute;)Z", "GetSetComposingRegion_IILandroid_view_inputmethod_TextAttribute_Handler", ApiSince=33)]
public virtual bool SetComposingRegion(int start, int end, Android.Views.InputMethods.TextAttribute? textAttribute);
[<Android.Runtime.Register("setComposingRegion", "(IILandroid/view/inputmethod/TextAttribute;)Z", "GetSetComposingRegion_IILandroid_view_inputmethod_TextAttribute_Handler", ApiSince=33)>]
abstract member SetComposingRegion : int * int * Android.Views.InputMethods.TextAttribute -> bool
override this.SetComposingRegion : int * int * Android.Views.InputMethods.TextAttribute -> bool
參數
- start
- Int32
書寫區域在文本中開始的位置
- end
- Int32
書寫區域在文本中結束的位置
- textAttribute
- TextAttribute
傳遞給目標連線的可選文字元資料。
傳回
目標連線回傳的值。
實作
- 屬性
備註
InputConnection.setComposingRegion(int,int) 的變體。 此方法用於讓 IME 在設定文字時提供額外資訊。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。