Class SeparatorWriterColor
Separator writer
Inheritance
Namespace: Terminaux.Writer.ConsoleWriters
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 |
RenderSeparator(string, ThemeColorType, params object[])
Renders a separator with text
Declaration
public static string RenderSeparator(string Text, ThemeColorType ForegroundColor = ThemeColorType.NeutralText, params object[] Vars)
Parameters
| Type | Name | Description |
|---|---|---|
| string | Text | Text to be written. If nothing, the entire line is filled with the separator. |
| ThemeColorType | 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, ThemeColorType, ThemeColorType, params object[])
Renders a separator with text
Declaration
public static string RenderSeparator(string Text, ThemeColorType ForegroundColor = ThemeColorType.NeutralText, ThemeColorType BackgroundColor = ThemeColorType.Background, params object[] Vars)
Parameters
| Type | Name | Description |
|---|---|---|
| string | Text | Text to be written. If nothing, the entire line is filled with the separator. |
| ThemeColorType | ForegroundColor | A foreground color that will be changed to. |
| ThemeColorType | BackgroundColor | A background color that will be changed to. |
| object[] | Vars | Variables to format the message before it's written. |
Returns
| Type | Description |
|---|---|
| string |
RenderSeparatorPlain(string, params object[])
Renders a separator with text
Declaration
public static string RenderSeparatorPlain(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 |
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. |
WriteSeparator(string, ThemeColorType, bool, params object[])
Draw a separator with text
Declaration
public static void WriteSeparator(string Text, ThemeColorType Color = ThemeColorType.NeutralText, 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. |
| ThemeColorType | 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. |
WriteSeparator(string, ThemeColorType, ThemeColorType, bool, params object[])
Draw a separator with text
Declaration
public static void WriteSeparator(string Text, ThemeColorType ForegroundColor = ThemeColorType.NeutralText, ThemeColorType BackgroundColor = ThemeColorType.Background, 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. |
| ThemeColorType | ForegroundColor | A foreground color that will be changed to. |
| ThemeColorType | 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. |
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
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. |