Class SeparatorWriterColor
Separator writer
Inheritance
Namespace: Terminaux.Writer.FancyWriters
Assembly: Terminaux.dll
Syntax
public static class SeparatorWriterColor
Methods
| Edit this page View SourceRenderSeparator(string, params object[])
Renders a separator with text
Declaration
public static string RenderSeparator(string Text, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. If nothing, the entire line is filled with the separator. |
object[] | Vars | Variables to format the message before it's written. |
Returns
Type | Description |
---|---|
string |
RenderSeparator(string, Color, params object[])
Renders a separator with text
Declaration
public static string RenderSeparator(string Text, Color ForegroundColor, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. If nothing, the entire line is filled with the separator. |
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 |
RenderSeparator(string, Color, Color, params object[])
Renders a separator with text
Declaration
public static string RenderSeparator(string Text, Color ForegroundColor, Color BackgroundColor, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. If nothing, the entire line is filled with the separator. |
Color | ForegroundColor | A foreground color that will be changed to. |
Color | BackgroundColor | A background color that will be changed to. |
object[] | Vars | Variables to format the message before it's written. |
Returns
Type | Description |
---|---|
string |
WriteSeparator(string, bool, params object[])
Draw a separator with text
Declaration
public static void WriteSeparator(string Text, bool line = true, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. If nothing, the entire line is filled with the separator. |
bool | line | Whether to write a new line or not |
object[] | Vars | Variables to format the message before it's written. |
WriteSeparatorColor(string, Color, bool, params object[])
Draw a separator with text
Declaration
public static void WriteSeparatorColor(string Text, Color Color, bool line = true, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. If nothing, the entire line is filled with the separator. |
Color | Color | A color that will be changed to. |
bool | line | Whether to write a new line or not |
object[] | Vars | Variables to format the message before it's written. |
WriteSeparatorColorBack(string, Color, Color, bool, params object[])
Draw a separator with text
Declaration
public static void WriteSeparatorColorBack(string Text, Color ForegroundColor, Color BackgroundColor, bool line = true, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. If nothing, the entire line is filled with the separator. |
Color | ForegroundColor | A foreground color that will be changed to. |
Color | BackgroundColor | A background color that will be changed to. |
bool | line | Whether to write a new line or not |
object[] | Vars | Variables to format the message before it's written. |
WriteSeparatorPlain(string, bool, params object[])
Draw a separator with text plainly
Declaration
public static void WriteSeparatorPlain(string Text, bool line = true, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | Text to be written. If nothing, the entire line is filled with the separator. |
bool | line | Whether to write a new line or not |
object[] | Vars | Variables to format the message before it's written. |