QwertyKeyListener.MarkAsReplaced(ISpannable, Int32, Int32, String) Method

Definition

Marks the specified region of content as having contained original prior to AutoText replacement.

[Android.Runtime.Register("markAsReplaced", "(Landroid/text/Spannable;IILjava/lang/String;)V", "")]
public static void MarkAsReplaced (Android.Text.ISpannable? content, int start, int end, string? original);
[<Android.Runtime.Register("markAsReplaced", "(Landroid/text/Spannable;IILjava/lang/String;)V", "")>]
static member MarkAsReplaced : Android.Text.ISpannable * int * int * string -> unit

Parameters

content
ISpannable

the Editable text where the replacement was made

start
Int32

the start of the replaced region

end
Int32

the end of the replaced region; the location of the cursor

original
String

the text to be restored if the user presses DEL

Attributes

Remarks

Marks the specified region of content as having contained original prior to AutoText replacement. Call this method when you have done or are about to do an AutoText-style replacement on a region of text and want to let the same mechanism (the user pressing DEL immediately after the change) undo the replacement.

Java documentation for android.text.method.QwertyKeyListener.markAsReplaced(android.text.Spannable, int, int, java.lang.String).

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