String.Repeat(Int32) Method

Definition

Returns a string whose value is the concatenation of this string repeated count times.

[Android.Runtime.Register("repeat", "(I)Ljava/lang/String;", "", ApiSince=33)]
public string Repeat (int count);
[<Android.Runtime.Register("repeat", "(I)Ljava/lang/String;", "", ApiSince=33)>]
member this.Repeat : int -> string

Parameters

count
Int32

number of times to repeat

Returns

A string composed of this string repeated count times or the empty string if this string is empty or count is zero

Attributes

Remarks

Returns a string whose value is the concatenation of this string repeated count times.

If this string is empty or count is zero then the empty string is returned.

Added in 11.

Java documentation for java.lang.String.repeat(int).

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