StringBuffer.Repeat 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 |
|---|---|
| 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(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
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.