共用方式為


SpannableStringBuilder.Insert Method

Definition

Overloads

Insert(Int32, ICharSequence)

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

Insert(Int32, String)
Insert(Int32, ICharSequence, Int32, Int32)

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

Insert(Int32, String, Int32, Int32)

Insert(Int32, ICharSequence)

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

[Android.Runtime.Register("insert", "(ILjava/lang/CharSequence;)Landroid/text/SpannableStringBuilder;", "GetInsert_ILjava_lang_CharSequence_Handler")]
public virtual Android.Text.IEditable? Insert (int where, Java.Lang.ICharSequence? tb);
[<Android.Runtime.Register("insert", "(ILjava/lang/CharSequence;)Landroid/text/SpannableStringBuilder;", "GetInsert_ILjava_lang_CharSequence_Handler")>]
abstract member Insert : int * Java.Lang.ICharSequence -> Android.Text.IEditable
override this.Insert : int * Java.Lang.ICharSequence -> Android.Text.IEditable

Parameters

where
Int32

Returns

Implements

Attributes

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

Insert(Int32, String)

public Android.Text.IEditable? Insert (int where, string? tb);
member this.Insert : int * string -> Android.Text.IEditable

Parameters

where
Int32
tb
String

Returns

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

Insert(Int32, ICharSequence, Int32, Int32)

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

[Android.Runtime.Register("insert", "(ILjava/lang/CharSequence;II)Landroid/text/SpannableStringBuilder;", "GetInsert_ILjava_lang_CharSequence_IIHandler")]
public virtual Android.Text.IEditable? Insert (int where, Java.Lang.ICharSequence? tb, int start, int end);
[<Android.Runtime.Register("insert", "(ILjava/lang/CharSequence;II)Landroid/text/SpannableStringBuilder;", "GetInsert_ILjava_lang_CharSequence_IIHandler")>]
abstract member Insert : int * Java.Lang.ICharSequence * int * int -> Android.Text.IEditable
override this.Insert : int * Java.Lang.ICharSequence * int * int -> Android.Text.IEditable

Parameters

where
Int32
start
Int32
end
Int32

Returns

Implements

Attributes

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

Insert(Int32, String, Int32, Int32)

public Android.Text.IEditable? Insert (int where, string? tb, int start, int end);
member this.Insert : int * string * int * int -> Android.Text.IEditable

Parameters

where
Int32
tb
String
start
Int32
end
Int32

Returns

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