TextTablesDotNET 1.0.1

Library for generating text-based tables for the .NET platform

Install-Package TextTablesDotNET -Version 1.0.1
dotnet add package TextTablesDotNET --version 1.0.1
<PackageReference Include="TextTablesDotNET" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TextTablesDotNET --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

TextTables.NET

Library for generating text-based tables for the .NET platform

TextTable table = new TextTable();
table.AddRow("TextTables.NET demo").WithColSpan(0,4);
table.AddRow("Multiple columns", "Or rows", 1.6180).WithColSpan(0,2).WithRowSpan(1,2);
table.AddRow(3.14, "foo", "bar");
Console.WriteLine(table);
// +---------------------------------------+
// |          TextTables.NET demo          |
// +---------------------+---------+-------+
// |  Multiple columns   |         | 1.618 |
// +----------+----------+ Or rows +-------+
// |   3.14   |   foo    |         |  bar  |
// +----------+----------+---------+-------+

table.Options.Charset = TextTableCharset.GetBoxCharset();
Console.WriteLine(table);
// ┌───────────────────────────────────────┐
// │          TextTables.NET demo          │
// ├─────────────────────┬─────────┬───────┤
// │  Multiple columns   │         │ 1.618 │
// ├──────────┬──────────┤ Or rows ├───────┤
// │   3.14   │   foo    │         │  bar  │
// └──────────┴──────────┴─────────┴───────┘

TextTables.NET

Library for generating text-based tables for the .NET platform

TextTable table = new TextTable();
table.AddRow("TextTables.NET demo").WithColSpan(0,4);
table.AddRow("Multiple columns", "Or rows", 1.6180).WithColSpan(0,2).WithRowSpan(1,2);
table.AddRow(3.14, "foo", "bar");
Console.WriteLine(table);
// +---------------------------------------+
// |          TextTables.NET demo          |
// +---------------------+---------+-------+
// |  Multiple columns   |         | 1.618 |
// +----------+----------+ Or rows +-------+
// |   3.14   |   foo    |         |  bar  |
// +----------+----------+---------+-------+

table.Options.Charset = TextTableCharset.GetBoxCharset();
Console.WriteLine(table);
// ┌───────────────────────────────────────┐
// │          TextTables.NET demo          │
// ├─────────────────────┬─────────┬───────┤
// │  Multiple columns   │         │ 1.618 │
// ├──────────┬──────────┤ Or rows ├───────┤
// │   3.14   │   foo    │         │  bar  │
// └──────────┴──────────┴─────────┴───────┘

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 116 1/18/2019
1.0.0 121 1/17/2019