Class ListEntryWriterColor
List entry writer with color support
Inheritance
Namespace: Terminaux.Writer.ConsoleWriters
Assembly: Terminaux.dll
Syntax
public static class ListEntryWriterColor
Methods
| Edit this page View SourceRenderListEntry(string, string, int)
Renders a list entry and value.
Declaration
public static string RenderListEntry(string entry, string value, int indent = 0)
Parameters
Type | Name | Description |
---|---|---|
string | entry | A list entry that will be listed. |
string | value | A list value that will be listed. |
int | indent | Indentation level |
Returns
Type | Description |
---|---|
string | A list entry without the new line at the end |
RenderListEntry(string, string, Color, Color, int)
Renders a list entry and value.
Declaration
public static string RenderListEntry(string entry, string value, Color ListKeyColor, Color ListValueColor, int indent = 0)
Parameters
Type | Name | Description |
---|---|---|
string | entry | A list entry that will be listed. |
string | value | A list value that will be listed. |
Color | ListKeyColor | A key color. |
Color | ListValueColor | A value color. |
int | indent | Indentation level |
Returns
Type | Description |
---|---|
string | A list entry without the new line at the end |
WriteListEntry(string, string, int)
Outputs a list entry and value into the terminal prompt.
Declaration
public static void WriteListEntry(string entry, string value, int indent = 0)
Parameters
Type | Name | Description |
---|---|---|
string | entry | A list entry that will be listed to the terminal prompt. |
string | value | A list value that will be listed to the terminal prompt. |
int | indent | Indentation level |
WriteListEntry(string, string, Color, Color, int)
Outputs a list entry and value into the terminal prompt.
Declaration
public static void WriteListEntry(string entry, string value, Color ListKeyColor, Color ListValueColor, int indent = 0)
Parameters
Type | Name | Description |
---|---|---|
string | entry | A list entry that will be listed to the terminal prompt. |
string | value | A list value that will be listed to the terminal prompt. |
Color | ListKeyColor | A key color. |
Color | ListValueColor | A value color. |
int | indent | Indentation level |
WriteListEntryPlain(string, string, int)
Outputs a list entry and value into the terminal prompt plainly.
Declaration
public static void WriteListEntryPlain(string entry, string value, int indent = 0)
Parameters
Type | Name | Description |
---|---|---|
string | entry | A list entry that will be listed to the terminal prompt. |
string | value | A list value that will be listed to the terminal prompt. |
int | indent | Indentation level |