Search Results for

    Show / Hide Table of Contents

    Class ListEntryWriterColor

    List entry writer with color support

    Inheritance
    object
    ListEntryWriterColor
    Namespace: Terminaux.Writer.ConsoleWriters
    Assembly: Terminaux.dll
    Syntax
    public static class ListEntryWriterColor

    Methods

    RenderListEntry(string, string, Color, Color, int, bool)

    Renders a list entry and value.

    Declaration
    public static string RenderListEntry(string entry, string value, Color ListKeyColor, Color ListValueColor, int indent = 0, bool needsIndent = true)
    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

    bool needsIndent

    Whether to draw the indentation indicator or not

    Returns
    Type Description
    string

    A list entry without the new line at the end

    RenderListEntry(string, string, ThemeColorType, ThemeColorType, int, bool)

    Renders a list entry and value.

    Declaration
    public static string RenderListEntry(string entry, string value, ThemeColorType ListKeyColor = ThemeColorType.ListEntry, ThemeColorType ListValueColor = ThemeColorType.ListValue, int indent = 0, bool needsIndent = true)
    Parameters
    Type Name Description
    string entry

    A list entry that will be listed.

    string value

    A list value that will be listed.

    ThemeColorType ListKeyColor

    A key color.

    ThemeColorType ListValueColor

    A value color.

    int indent

    Indentation level

    bool needsIndent

    Whether to draw the indentation indicator or not

    Returns
    Type Description
    string

    A list entry without the new line at the end

    RenderListEntryPlain(string, string, int, bool)

    Renders a list entry and value.

    Declaration
    public static string RenderListEntryPlain(string entry, string value, int indent = 0, bool needsIndent = true)
    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

    bool needsIndent

    Whether to draw the indentation indicator or not

    Returns
    Type Description
    string

    A list entry without the new line at the end

    WriteListEntry(string, string, Color, Color, int, bool)

    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, bool needsIndent = true)
    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

    bool needsIndent

    Whether to draw the indentation indicator or not

    WriteListEntry(string, string, ThemeColorType, ThemeColorType, int, bool)

    Outputs a list entry and value into the terminal prompt.

    Declaration
    public static void WriteListEntry(string entry, string value, ThemeColorType ListKeyColor = ThemeColorType.ListEntry, ThemeColorType ListValueColor = ThemeColorType.ListValue, int indent = 0, bool needsIndent = true)
    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.

    ThemeColorType ListKeyColor

    A key color.

    ThemeColorType ListValueColor

    A value color.

    int indent

    Indentation level

    bool needsIndent

    Whether to draw the indentation indicator or not

    WriteListEntryPlain(string, string, int, bool)

    Outputs a list entry and value into the terminal prompt plainly.

    Declaration
    public static void WriteListEntryPlain(string entry, string value, int indent = 0, bool needsIndent = true)
    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

    bool needsIndent

    Whether to draw the indentation indicator or not

    In this article
    Back to top Generated by DocFX