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