共用方式為


IInputConnectionExtensions.CommitText Method

Definition

Overloads

CommitText(IInputConnection, String, Int32)
CommitText(IInputConnection, String, Int32, TextAttribute)

CommitText(IInputConnection, String, Int32)

public static bool CommitText (this Android.Views.InputMethods.IInputConnection self, string? text, int newCursorPosition);
static member CommitText : Android.Views.InputMethods.IInputConnection * string * int -> bool

Parameters

text
String
newCursorPosition
Int32

Returns

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

CommitText(IInputConnection, String, Int32, TextAttribute)

public static bool CommitText (this Android.Views.InputMethods.IInputConnection self, string text, int newCursorPosition, Android.Views.InputMethods.TextAttribute? textAttribute);
static member CommitText : Android.Views.InputMethods.IInputConnection * string * int * Android.Views.InputMethods.TextAttribute -> bool

Parameters

text
String
newCursorPosition
Int32
textAttribute
TextAttribute

Returns

Applies to