Android.Text.IEditable.Replace Method
Replaces the specified range (st…en) of text in this Editable with a copy of the slice start…end from source.

Syntax

[Android.Runtime.Register("replace", "(IILjava/lang/CharSequence;II)Landroid/text/Editable;", "GetReplace_IILjava_lang_CharSequence_IIHandler:Android.Text.IEditableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public IEditable Replace (int st, int en, Java.Lang.ICharSequence source, int start, int end)

Parameters

st
Documentation for this section has not yet been entered.
en
Documentation for this section has not yet been entered.
source
Documentation for this section has not yet been entered.
start
Documentation for this section has not yet been entered.
end
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Replaces the specified range (st…en) of text in this Editable with a copy of the slice start…end from source. The destination slice may be empty, in which case the operation is an insertion, or the source slice may be empty, in which case the operation is a deletion.

Before the change is committed, each filter that was set with IEditable.SetFilters(IInputFilter[]) is given the opportunity to modify the source text.

If source is Spanned, the spans from it are preserved into the Editable. Existing spans within the Editable that entirely cover the replaced range are retained, but any that were strictly within the range that was replaced are removed. As a special case, the cursor position is preserved even when the entire range where it is located is replaced.

[Android Documentation]

Requirements

Namespace: Android.Text
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1