Trustsoft.TextTables
1.0.0-rc3
See the version list below for details.
dotnet add package Trustsoft.TextTables --version 1.0.0-rc3
NuGet\Install-Package Trustsoft.TextTables -Version 1.0.0-rc3
<PackageReference Include="Trustsoft.TextTables" Version="1.0.0-rc3" />
paket add Trustsoft.TextTables --version 1.0.0-rc3
#r "nuget: Trustsoft.TextTables, 1.0.0-rc3"
// Install Trustsoft.TextTables as a Cake Addin #addin nuget:?package=Trustsoft.TextTables&version=1.0.0-rc3&prerelease // Install Trustsoft.TextTables as a Cake Tool #tool nuget:?package=Trustsoft.TextTables&version=1.0.0-rc3&prerelease
Work with text tables with ease.
Features:
- Table output layouts;
- Table indentation;
- Table title;
- Table footer;
- Table ruler;
- Column content indentation;
- Column content alignment (left, right, center).
Usage:
// --- Sample #1 ---
// Default table configuration options + Title and Footer.
var t = new TextTable(["#", "Name"]);
t.Title = "Title";
t.AddRow(1, "one");
t.AddRow(2, "two");
t.AddRow(3, "three");
t.AddFooter("Footer");
t.Write();
// --- Sample #2 ---
// Default table configuration options + table indent = 4.
var t = new TextTable(["#", "Name"]);
t.Options.Indent = 4;
t.AddRow(1, "one");
t.AddRow(2, "two");
t.AddRow(3, "three");
t.Write();
// --- Sample #3 ---
// Default table configuration options + Title = "Sample Title", table indent = 4, ContentIndent = 3.
var t = new TextTable(["#", "Name"]);
t.Title = "Sample Title";
t.Options.Indent = 4;
t.Options.ContentIndent = 3;
t.AddRow(1, "one");
t.AddRow(2, "two");
t.AddRow(3, "three");
t.Write();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
ChangeLog
---------
1.0.0-rc3 Added ToConsole, ToFile, ToStream methods to output table data.
1.0.0-rc3 Added support for centered column content alignment.
1.0.0-rc3 Added more ways to construct TextTable.
1.0.0-rc3 Added TextTable.ToString methods.
1.0.0-rc3 Updated ITextTable contract.
1.0.0-rc3 Updated usage sample.
1.0.0-rc2 Code refactoring and cleanup.
1.0.0-rc2 Updated usage sample.
1.0.0-rc2 Add output layout options.
1.0.0-rc1 First public Nuget package version.