Android.Text.SpannableStringBuilder.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/SpannableStringBuilder;", "GetReplace_IILjava_lang_CharSequence_IIHandler")]
public virtual IEditable Replace (int start, int end, Java.Lang.ICharSequence tb, int tbstart, int tbend)

Parameters

start
Documentation for this section has not yet been entered.
end
Documentation for this section has not yet been entered.
tb
Documentation for this section has not yet been entered.
tbstart
Documentation for this section has not yet been entered.
tbend
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