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