Class Listing
Listing renderable
Inheritance
object
Listing
Implements
Namespace: Terminaux.Writer.CyclicWriters
Assembly: Terminaux.dll
Syntax
public class Listing : IStaticRenderable
Constructors
| Edit this page View SourceListing()
Makes a new instance of the Listing 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 Listing segment group
Declaration
public string Render()
Returns
Type | Description |
---|---|
string | Rendered Listing text that will be used by the renderer |