StringBuffer.Replace(Int32, Int32, String) Method

Definition

Replaces the characters in the specified range with the contents of the specified string.

[Android.Runtime.Register("replace", "(IILjava/lang/String;)Ljava/lang/StringBuffer;", "")]
public Java.Lang.StringBuffer Replace (int start, int end, string str);
[<Android.Runtime.Register("replace", "(IILjava/lang/String;)Ljava/lang/StringBuffer;", "")>]
member this.Replace : int * int * string -> Java.Lang.StringBuffer

Parameters

start
Int32

the inclusive begin index.

end
Int32

the exclusive end index.

str
String

Returns

StringBuffer
Attributes

Exceptions

if start or end are negative, start is greater than end or end is greater than the length of s.

Remarks

Java documentation for java.lang.StringBuffer.replace(int, int, java.lang.String).

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