Method | Description | |
---|---|---|
Render ( IList |
The Render function which uses Console.Write for printing and Console.WindowWith to determine the with of the console.
|
|
Render ( IList |
The classic Render functions, which lets you supply the maximum width and the function which has to be used for printing.
|
|
TextTable ( IList |
A constructor which requires an array of Header or a class with the IList
|
|
TextTable ( IList |
A constructor which requires an array of strings or a class with the IList
|
Method | Description | |
---|---|---|
GetHeaderArrayOfStringArray ( IList |
A function for converting the string array into a header array, needed to fit in the constructor.
|
|
GetLongestDataEntryLength ( IList |
Gets the longest data entry length in a data set of a specific row.
|
|
GetLongestDataEntryLengthArray ( IList |
Gets the longest data entry lengths of all rows.
|
|
Trim ( Align alignment, string text, int length ) : string |
Trims the text according to length and alignment.
|
protected static GetHeaderArrayOfStringArray ( IList |
||
header | IList |
/// An array of strings |
return | TextTools.Header[] |
protected GetLongestDataEntryLength ( IList | ||
data | IList |
/// A data object |
row | int |
/// The row to examine |
return | int |
protected GetLongestDataEntryLengthArray ( IList | ||
data | IList |
/// A data object |
return | int[] |
public Render ( IList | ||
data | IList |
/// A data object, the second dimension must fit the header length. |
return | void |
public Render ( IList | ||
data | IList |
/// A data object |
outputFunction | OutputFunction |
/// A delegate to the output function |
maximumWidth | int |
/// the maximum width of the table |
return | void |
public TextTable ( IList |
||
header | IList |
/// A header array |
return | System |
public TextTable ( IList |
||
header | IList |
/// A string array |
return | System |
protected Trim ( Align alignment, string text, int length ) : string | ||
alignment | Align |
/// Alignment value |
text | string |
/// Text to trim |
length | int |
/// The maximum length |
return | string |