共用方式為


BaseInputConnection.GetSelectedText(GetTextFlags) 方法

定義

默認實作會傳回目前選取的文字,如果沒有選取則為 Null。

public string? GetSelectedText (Android.Views.InputMethods.GetTextFlags flags);
member this.GetSelectedText : Android.Views.InputMethods.GetTextFlags -> string

參數

flags
GetTextFlags

傳回

備註

默認實作會傳回目前選取的文字,如果沒有選取則為 Null。

android.view.inputmethod.BaseInputConnection.getSelectedText(int)Java 檔。

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

適用於