Java.Lang.StringBuilder.Insert Method
Inserts the string representation of the specified subsequence of the CharSequence at the specified offset.

Syntax

[Android.Runtime.Register("insert", "(ILjava/lang/CharSequence;II)Ljava/lang/StringBuilder;", "")]
public StringBuilder Insert (int offset, ICharSequence s, int start, int end)

See Also

ICharSequence.SubSequenceFormatted(int, System.Int32)

Parameters

offset
the index to insert at.
s
the CharSequence to insert.
start
the start of the subsequence of the character sequence.
end
the end of the subsequence of the character sequence.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IndexOutOfBoundsExceptionif offset is negative or greater than the current length(), or start and end do not specify a valid subsequence.

Remarks

Inserts the string representation of the specified subsequence of the CharSequence at the specified offset. The CharSequence is converted to a String as defined by ICharSequence.SubSequenceFormatted(int, System.Int32). If the CharSequence is null, then the string "null" is used to determine the subsequence.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1