語言

EditorInfo.InitialSelStart 屬性

定義

編輯開始時選取起始的文字偏移量;-1 如果不知道。

[Android.Runtime.Register("initialSelStart")]
public int InitialSelStart { get; set; }
[<Android.Runtime.Register("initialSelStart")>]
member this.InitialSelStart : int with get, set

屬性值

屬性

備註

編輯開始時選取起始的文字偏移量;-1 如果不知道。 請記住,如果不知道游標位置,許多 IME 無法提供完整功能,甚至可能出現不可預測的行為:如果可能的話,請把游標位置傳到這裡。

另外,游標位置<><必須是現在強且強>,不能是過去某個時候,即使輸入從同一個文字欄位開始。 當應用程式填入這個物件時,根據定義,輸入即將開始,這個值會覆蓋應用程式先前可能傳入 InputMethodManager#updateSelection(android.view.View, int, int, int, int) 的任何值。

android.view.inputmethod.EditorInfo.initialSelStartJava 檔。

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

適用於