SpannableStringBuilder.Insert Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Insert(Int32, ICharSequence) |
Convenience for replace(where, where, text, 0, text.length()); |
| Insert(Int32, String) |
Inserts the supplied string at a buffer offset. |
| Insert(Int32, ICharSequence, Int32, Int32) |
Convenience for replace(where, where, text, start, end) |
| Insert(Int32, String, Int32, Int32) |
Inserts a selected string range at a buffer offset. |
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
The buffer offset at which to insert text.
The source text to insert.
Returns
This editable buffer after the insertion and input-filter processing.
Implements
- Attributes
Remarks
Convenience for replace(where, where, text, 0, text.length());
Android reference for android.text.SpannableStringBuilder.insert.
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)
Inserts the supplied string at a buffer offset.
public Android.Text.IEditable? Insert(int where, string? tb);
member this.Insert : int * string -> Android.Text.IEditable
Parameters
- where
- Int32
The buffer offset at which to insert text.
- tb
- String
The source string to insert.
Returns
This editable buffer after the insertion and input-filter processing.
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
The buffer offset at which to insert text.
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 buffer after the insertion and input-filter processing.
Implements
- Attributes
Remarks
Convenience for replace(where, where, text, start, end)
Android reference for android.text.SpannableStringBuilder.insert.
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)
Inserts a selected string range at a buffer offset.
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
The buffer offset at which to insert text.
- tb
- String
The source string 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 buffer after the insertion and input-filter processing.
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.