Class Listing
Listing renderable
Inheritance
Namespace
Syntax
public class Listing : SimpleCyclicWriter
Constructors
Listing()
Makes a new instance of the array element list renderer
Declaration
public Listing()
Properties
KeyColor
List key color
Property Value
Color
Declaration
public Color KeyColor { get; set; }
KeyStringifier
A stringifier function that converts the object (a key in the dictionary) based on its type to a string
Property Value
Func<object, string>
Declaration
public Func<object, string>? KeyStringifier { get; set; }
Objects
A list or an array of objects
Property Value
IEnumerable
Declaration
public IEnumerable? Objects { get; set; }
RecursiveStringifier
A stringifier function that converts the object based on an array or an enumerable to a string
Property Value
Func<object, string>
Declaration
public Func<object, string>? RecursiveStringifier { get; set; }
Stringifier
A stringifier function that converts the object based on its type to a string
Property Value
Func<object, string>
Declaration
public Func<object, string>? Stringifier { get; set; }
UseColors
Whether to use colors or not
Property Value
bool
Declaration
public bool UseColors { get; set; }
ValueColor
List value color
Property Value
Color
Declaration
public Color ValueColor { get; set; }
ValueStringifier
A stringifier function that converts the object (a value in the dictionary) based on its type to a string
Property Value
Func<object, string>
Declaration
public Func<object, string>? ValueStringifier { get; set; }
Methods
Render()
Renders a list of elements from an array of objects
Returns
string
Rendered text that will be used by the renderer
Declaration
public override string Render()