語言

BaseInputConnection.SetSelection(Int32, Int32) 方法

定義

預設實作會改變當前可編輯文本中的選擇位置。

[Android.Runtime.Register("setSelection", "(II)Z", "GetSetSelection_IIHandler")]
public virtual bool SetSelection(int start, int end);
[<Android.Runtime.Register("setSelection", "(II)Z", "GetSetSelection_IIHandler")>]
abstract member SetSelection : int * int -> bool
override this.SetSelection : int * int -> bool

參數

start
Int32

角色索引應該從選擇開始的位置。

end
Int32

字元索引應該在選擇結束的地方。

傳回

實作

屬性

備註

預設實作會改變當前可編輯文本中的選擇位置。

的 android.view.inputmethod.BaseInputConnection.setSelection(int, int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於