Language

IEditableExtensions.Replace Method

Definition

Overloads

Name Description
Replace(IEditable, Int32, Int32, String)

Replaces an editable-text range with a string.

Replace(IEditable, Int32, Int32, String, Int32, Int32)

Replaces an editable-text range with a selected string range.

Replace(IEditable, Int32, Int32, String)

Replaces an editable-text range with a string.

public static Android.Text.IEditable? Replace(this Android.Text.IEditable self, int st, int en, string? text);
static member Replace : Android.Text.IEditable * int * int * string -> Android.Text.IEditable

Parameters

self
IEditable

The editable text to modify.

st
Int32

The first buffer character offset to replace.

en
Int32

The exclusive end offset of the replaced buffer range.

text
String

The replacement string.

Returns

The editable object returned by the replacement operation.

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

Replace(IEditable, Int32, Int32, String, Int32, Int32)

Replaces an editable-text range with a selected string range.

public static Android.Text.IEditable? Replace(this Android.Text.IEditable self, int st, int en, string? source, int start, int end);
static member Replace : Android.Text.IEditable * int * int * string * int * int -> Android.Text.IEditable

Parameters

self
IEditable

The editable text to modify.

st
Int32

The first buffer character offset to replace.

en
Int32

The exclusive end offset of the replaced buffer range.

source
String

The string that contains the replacement range.

start
Int32

The first source character index to include.

end
Int32

The source index at which the replacement range stops, excluding that character.

Returns

The editable object returned by the replacement operation.

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