語言

InputConnectionWrapper.GetTextBeforeCursorFormatted 方法

定義

待補充

[Android.Runtime.Register("getTextBeforeCursor", "(II)Ljava/lang/CharSequence;", "GetGetTextBeforeCursor_IIHandler")]
public virtual Java.Lang.ICharSequence? GetTextBeforeCursorFormatted(int n, Android.Views.InputMethods.GetTextFlags flags);
[<Android.Runtime.Register("getTextBeforeCursor", "(II)Ljava/lang/CharSequence;", "GetGetTextBeforeCursor_IIHandler")>]
abstract member GetTextBeforeCursorFormatted : int * Android.Views.InputMethods.GetTextFlags -> Java.Lang.ICharSequence
override this.GetTextBeforeCursorFormatted : int * Android.Views.InputMethods.GetTextFlags -> Java.Lang.ICharSequence

參數

n
Int32

文字的預期長度。

flags
GetTextFlags

提供更多選項來控制文字回傳方式。 可能是 0 或 GetTextWithStyles。

傳回

實作

屬性

備註

待補充

Java 文件 android.view.inputmethod.InputConnectionWrapper.getTextBeforeCursor(int, int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於