Search Results for

    Show / Hide Table of Contents

    Class ListWriterColor

    List writer with color support

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

    Methods

    RenderListPlain<T>(IEnumerable<T>)

    Renders a list and value.

    Declaration
    public static string RenderListPlain<T>(IEnumerable<T> List)
    Parameters
    Type Name Description
    IEnumerable<T> List

    An enumerable that will be listed to the terminal prompt.

    Returns
    Type Description
    string

    A list without the new line at the end

    Type Parameters
    Name Description
    T

    RenderListPlain<TKey, TValue>(Dictionary<TKey, TValue>)

    Renders a list and value.

    Declaration
    public static string RenderListPlain<TKey, TValue>(Dictionary<TKey, TValue> List)
    Parameters
    Type Name Description
    Dictionary<TKey, TValue> List

    A dictionary that will be listed to the terminal prompt.

    Returns
    Type Description
    string

    A list without the new line at the end

    Type Parameters
    Name Description
    TKey
    TValue

    RenderList<T>(IEnumerable<T>, Color, Color)

    Renders a list and value.

    Declaration
    public static string RenderList<T>(IEnumerable<T> List, Color ListKeyColor, Color ListValueColor)
    Parameters
    Type Name Description
    IEnumerable<T> List

    An enumerable that will be listed to the terminal prompt.

    Color ListKeyColor

    A key color.

    Color ListValueColor

    A value color.

    Returns
    Type Description
    string

    A list without the new line at the end

    Type Parameters
    Name Description
    T

    RenderList<T>(IEnumerable<T>, ThemeColorType, ThemeColorType)

    Renders a list and value.

    Declaration
    public static string RenderList<T>(IEnumerable<T> List, ThemeColorType ListKeyColor = ThemeColorType.ListEntry, ThemeColorType ListValueColor = ThemeColorType.ListValue)
    Parameters
    Type Name Description
    IEnumerable<T> List

    An enumerable that will be listed to the terminal prompt.

    ThemeColorType ListKeyColor

    A key color.

    ThemeColorType ListValueColor

    A value color.

    Returns
    Type Description
    string

    A list without the new line at the end

    Type Parameters
    Name Description
    T

    RenderList<TKey, TValue>(Dictionary<TKey, TValue>, Color, Color)

    Renders a list and value.

    Declaration
    public static string RenderList<TKey, TValue>(Dictionary<TKey, TValue> List, Color ListKeyColor, Color ListValueColor)
    Parameters
    Type Name Description
    Dictionary<TKey, TValue> List

    A dictionary that will be listed to the terminal prompt.

    Color ListKeyColor

    A key color.

    Color ListValueColor

    A value color.

    Returns
    Type Description
    string

    A list without the new line at the end

    Type Parameters
    Name Description
    TKey
    TValue

    RenderList<TKey, TValue>(Dictionary<TKey, TValue>, ThemeColorType, ThemeColorType)

    Renders a list and value.

    Declaration
    public static string RenderList<TKey, TValue>(Dictionary<TKey, TValue> List, ThemeColorType ListKeyColor = ThemeColorType.ListEntry, ThemeColorType ListValueColor = ThemeColorType.ListValue)
    Parameters
    Type Name Description
    Dictionary<TKey, TValue> List

    A dictionary that will be listed to the terminal prompt.

    ThemeColorType ListKeyColor

    A key color.

    ThemeColorType ListValueColor

    A value color.

    Returns
    Type Description
    string

    A list without the new line at the end

    Type Parameters
    Name Description
    TKey
    TValue

    WriteListPlain<T>(IEnumerable<T>)

    Outputs a list and value into the terminal prompt plainly.

    Declaration
    public static void WriteListPlain<T>(IEnumerable<T> List)
    Parameters
    Type Name Description
    IEnumerable<T> List

    An enumerable that will be listed to the terminal prompt.

    Type Parameters
    Name Description
    T

    WriteListPlain<TKey, TValue>(Dictionary<TKey, TValue>)

    Outputs a list and value into the terminal prompt plainly.

    Declaration
    public static void WriteListPlain<TKey, TValue>(Dictionary<TKey, TValue> List)
    Parameters
    Type Name Description
    Dictionary<TKey, TValue> List

    A dictionary that will be listed to the terminal prompt.

    Type Parameters
    Name Description
    TKey
    TValue

    WriteList<T>(IEnumerable<T>, Color, Color)

    Outputs a list and value into the terminal prompt.

    Declaration
    public static void WriteList<T>(IEnumerable<T> List, Color ListKeyColor, Color ListValueColor)
    Parameters
    Type Name Description
    IEnumerable<T> List

    An enumerable that will be listed to the terminal prompt.

    Color ListKeyColor

    A key color.

    Color ListValueColor

    A value color.

    Type Parameters
    Name Description
    T

    WriteList<T>(IEnumerable<T>, ThemeColorType, ThemeColorType)

    Outputs a list and value into the terminal prompt.

    Declaration
    public static void WriteList<T>(IEnumerable<T> List, ThemeColorType ListKeyColor = ThemeColorType.ListEntry, ThemeColorType ListValueColor = ThemeColorType.ListValue)
    Parameters
    Type Name Description
    IEnumerable<T> List

    An enumerable that will be listed to the terminal prompt.

    ThemeColorType ListKeyColor

    A key color.

    ThemeColorType ListValueColor

    A value color.

    Type Parameters
    Name Description
    T

    WriteList<TKey, TValue>(Dictionary<TKey, TValue>, Color, Color)

    Outputs a list and value into the terminal prompt.

    Declaration
    public static void WriteList<TKey, TValue>(Dictionary<TKey, TValue> List, Color ListKeyColor, Color ListValueColor)
    Parameters
    Type Name Description
    Dictionary<TKey, TValue> List

    A dictionary that will be listed to the terminal prompt.

    Color ListKeyColor

    A key color.

    Color ListValueColor

    A value color.

    Type Parameters
    Name Description
    TKey
    TValue

    WriteList<TKey, TValue>(Dictionary<TKey, TValue>, ThemeColorType, ThemeColorType)

    Outputs a list and value into the terminal prompt.

    Declaration
    public static void WriteList<TKey, TValue>(Dictionary<TKey, TValue> List, ThemeColorType ListKeyColor = ThemeColorType.ListEntry, ThemeColorType ListValueColor = ThemeColorType.ListValue)
    Parameters
    Type Name Description
    Dictionary<TKey, TValue> List

    A dictionary that will be listed to the terminal prompt.

    ThemeColorType ListKeyColor

    A key color.

    ThemeColorType ListValueColor

    A value color.

    Type Parameters
    Name Description
    TKey
    TValue
    In this article
    Back to top Generated by DocFX