Table of Contents

Method Repeat

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Repeat(string, int)

Repeats the string n times.

public static string? Repeat(this string str, int n)

Parameters

str string

The text to repeat.

n int

Number of times to repeat the text.

Returns

string

The text repeated if n is greater than zero, otherwise null.

Remarks

This is a Terminal.Gui extension method to string to support TUI text manipulation.