Class RainbowBackTextWriterColor
Console text writer with rainbow color as background color
Inheritance
Namespace: Terminaux.Writer.FancyWriters
Assembly: Terminaux.dll
Syntax
public static class RainbowBackTextWriterColor
Methods
| Edit this page View SourceRender(string, bool, params object[])
Outputs the text into the terminal prompt.
Declaration
public static string Render(string Text, bool Line, params object[] vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | A sentence that will be written to the terminal prompt. Supports {0}, {1}, ... |
bool | Line | Whether to print a new line or not |
object[] | vars | Variables to format the message before it's written. |
Returns
Type | Description |
---|---|
string |
Render(string, params object[])
Outputs the text into the terminal prompt with rainbow bands as foregound colors.
Declaration
public static string Render(string Text, params object[] vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | A sentence that will be written to the terminal prompt. Supports {0}, {1}, ... |
object[] | vars | Variables to format the message before it's written. |
Returns
Type | Description |
---|---|
string |
RenderColor(string, bool, Color, params object[])
Outputs the text into the terminal prompt with custom color support.
Declaration
public static string RenderColor(string Text, bool Line, Color foregroundColor, params object[] vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | A sentence that will be written to the terminal prompt. Supports {0}, {1}, ... |
bool | Line | Whether to print a new line or not |
Color | foregroundColor | A foreground color that will be changed to. |
object[] | vars | Variables to format the message before it's written. |
Returns
Type | Description |
---|---|
string |
RenderColor(string, Color, params object[])
Outputs the text into the terminal prompt with custom color support.
Declaration
public static string RenderColor(string Text, Color foregroundColor, params object[] vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | A sentence that will be written to the terminal prompt. Supports {0}, {1}, ... |
Color | foregroundColor | A foreground color that will be changed to. |
object[] | vars | Variables to format the message before it's written. |
Returns
Type | Description |
---|---|
string |
Write(string, bool, params object[])
Outputs the text into the terminal prompt.
Declaration
public static void Write(string Text, bool Line, params object[] vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | A sentence that will be written to the terminal prompt. Supports {0}, {1}, ... |
bool | Line | Whether to print a new line or not |
object[] | vars | Variables to format the message before it's written. |
Write(string, params object[])
Outputs the text into the terminal prompt with rainbow bands as foregound colors.
Declaration
public static void Write(string Text, params object[] vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | A sentence that will be written to the terminal prompt. Supports {0}, {1}, ... |
object[] | vars | Variables to format the message before it's written. |
WriteColor(string, bool, Color, params object[])
Outputs the text into the terminal prompt with custom color support.
Declaration
public static void WriteColor(string Text, bool Line, Color foregroundColor, params object[] vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | A sentence that will be written to the terminal prompt. Supports {0}, {1}, ... |
bool | Line | Whether to print a new line or not |
Color | foregroundColor | A foreground color that will be changed to. |
object[] | vars | Variables to format the message before it's written. |
WriteColor(string, Color, params object[])
Outputs the text into the terminal prompt with custom color support.
Declaration
public static void WriteColor(string Text, Color foregroundColor, params object[] vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | A sentence that will be written to the terminal prompt. Supports {0}, {1}, ... |
Color | foregroundColor | A foreground color that will be changed to. |
object[] | vars | Variables to format the message before it's written. |