InputMethodManager.UpdateSelection(View, Int32, Int32, Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回報目前的選擇範圍。
[Android.Runtime.Register("updateSelection", "(Landroid/view/View;IIII)V", "")]
public void UpdateSelection(Android.Views.View? view, int selStart, int selEnd, int candidatesStart, int candidatesEnd);
[<Android.Runtime.Register("updateSelection", "(Landroid/view/View;IIII)V", "")>]
member this.UpdateSelection : Android.Views.View * int * int * int * int -> unit
參數
- view
- View
- selStart
- Int32
- selEnd
- Int32
- candidatesStart
- Int32
- candidatesEnd
- Int32
- 屬性
備註
回報目前的選擇範圍。
<強 Editor>作者<們/強者>,你必須在游標移動時呼叫這個方法。 請記得,除了這樣做之外,編輯器還需要隨時提供當前游標值 EditorInfo#initialSelStart ,並且 EditorInfo#initialSelEnd 每次 android.view.View#onCreateInputConnection(EditorInfo) 都會被調用,這會發生在鍵盤出現或焦點切換到文字欄位等情況下。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。