Język

StringBuffer.Repeat Method

Definition

Overloads

Name Description
Repeat(String, Int32)
Repeat(ICharSequence, Int32)

Appends count copies of the specified CharSequence cs to this sequence.

Repeat(Int32, Int32)

Repeats count copies of the string representation of the codePoint argument to this sequence.

Repeat(String, Int32)

public Java.Lang.StringBuffer Repeat(string cs, int count);
member this.Repeat : string * int -> Java.Lang.StringBuffer

Parameters

cs
String
count
Int32

Returns

Applies to

Repeat(ICharSequence, Int32)

Appends count copies of the specified CharSequence cs to this sequence.

[Android.Runtime.Register("repeat", "(Ljava/lang/CharSequence;I)Ljava/lang/StringBuffer;", "", ApiSince=37)]
public Java.Lang.StringBuffer Repeat(Java.Lang.ICharSequence cs, int count);
[<Android.Runtime.Register("repeat", "(Ljava/lang/CharSequence;I)Ljava/lang/StringBuffer;", "", ApiSince=37)>]
member this.Repeat : Java.Lang.ICharSequence * int -> Java.Lang.StringBuffer

Parameters

cs
ICharSequence

a CharSequence

count
Int32

number of times to copy

Returns

a reference to this object.

Attributes

Remarks

Appends count copies of the specified CharSequence cs to this sequence. The length of this sequence increases by count times the CharSequence length. If cs is null, then the four characters "null" are repeated into this sequence.

Java reference for java.lang.StringBuffer.repeat.

Applies to

Repeat(Int32, Int32)

Repeats count copies of the string representation of the codePoint argument to this sequence.

[Android.Runtime.Register("repeat", "(II)Ljava/lang/StringBuffer;", "", ApiSince=37)]
public Java.Lang.StringBuffer Repeat(int codePoint, int count);
[<Android.Runtime.Register("repeat", "(II)Ljava/lang/StringBuffer;", "", ApiSince=37)>]
member this.Repeat : int * int -> Java.Lang.StringBuffer

Parameters

codePoint
Int32

code point to append

count
Int32

number of times to copy

Returns

a reference to this object.

Attributes

Remarks

Repeats count copies of the string representation of the codePoint argument to this sequence. The length of this sequence increases by count times the string representation length. It is usual to use char expressions for code points. For example: Copy

Java reference for java.lang.StringBuffer.repeat.

Applies to