Language

IEditable.Insert Method

Definition

Overloads

Name Description
Insert(Int32, ICharSequence)

Convenience for replace(where, where, text, 0, text.

Insert(Int32, ICharSequence, Int32, Int32)

Convenience for replace(where, where, text, start, end)

Insert(Int32, ICharSequence)

Convenience for replace(where, where, text, 0, text.

[Android.Runtime.Register("insert", "(ILjava/lang/CharSequence;)Landroid/text/Editable;", "GetInsert_ILjava_lang_CharSequence_Handler:Android.Text.IEditableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Text.IEditable? Insert(int where, Java.Lang.ICharSequence? text);
[<Android.Runtime.Register("insert", "(ILjava/lang/CharSequence;)Landroid/text/Editable;", "GetInsert_ILjava_lang_CharSequence_Handler:Android.Text.IEditableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Insert : int * Java.Lang.ICharSequence -> Android.Text.IEditable

Parameters

where
Int32

The buffer offset at which to insert text.

text
ICharSequence

The source text to insert.

Returns

This editable object after insertion and input-filter processing.

Attributes

Remarks

Convenience for replace(where, where, text, 0, text.length());

Java documentation for android.text.Editable.insert(int, java.lang.CharSequence).

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.

See also

  • <xref:Android.Text.IEditable.Replace(System.Int32%2c+System.Int32%2c+System.Int32%2c+System.Int32%2c+System.Int32)>

Applies to

Insert(Int32, ICharSequence, Int32, Int32)

Convenience for replace(where, where, text, start, end)

[Android.Runtime.Register("insert", "(ILjava/lang/CharSequence;II)Landroid/text/Editable;", "GetInsert_ILjava_lang_CharSequence_IIHandler:Android.Text.IEditableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Text.IEditable? Insert(int where, Java.Lang.ICharSequence? text, int start, int end);
[<Android.Runtime.Register("insert", "(ILjava/lang/CharSequence;II)Landroid/text/Editable;", "GetInsert_ILjava_lang_CharSequence_IIHandler:Android.Text.IEditableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Insert : int * Java.Lang.ICharSequence * int * int -> Android.Text.IEditable

Parameters

where
Int32

The buffer offset at which to insert text.

text
ICharSequence

The source text that contains the range to insert.

start
Int32

The first source character index to include.

end
Int32

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

Returns

This editable object after insertion and input-filter processing.

Attributes

Remarks

Convenience for replace(where, where, text, start, end)

Java documentation for android.text.Editable.insert(int, java.lang.CharSequence, int, int).

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.

See also

  • <xref:Android.Text.IEditable.Replace(System.Int32%2c+System.Int32%2c+System.Int32%2c+System.Int32%2c+System.Int32)>

Applies to