ConsoleTableBuilderExtensions
01 Syntax
Microsoft.VisualBasic.ApplicationServices.Terminal.TablePrinter.ConsoleTableBuilderExtensions
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| WithTitle | 3 | Add title row on top of table |
| WithTextAlignment | 1 | Text alignment definition |
| Export | 1 | export the table print content string |
| ExportAndWrite | 1 | export the table content as string and do console write |
| ExportAndWriteLine | 1 | console write line of the table data |
| RealLength | 1 | Get the real width for do console print of a string |
| AddColumn | 1 | |
| WithColumn | 1 | |
| AddRow | 1 | |
| WithMetadataRow | 1 | |
| WithPaddingLeft | 1 | |
| WithPaddingRight | 1 | |
| WithFormatter | 1 | |
| WithColumnFormatter | 1 | |
| WithHeaderTextAlignment | 1 | |
| WithMinLength | 1 | |
| TrimColumn | 1 | |
| WithFormat | 1 | |
| WithCharMapDefinition | 3 | |
| WithHeaderCharMapDefinition | 1 |
03 Members
Add title row on top of table
Parameters
| Name | Type | Description |
|---|---|---|
builder | ConsoleTableBuilder | - |
title | String | - |
Add title row on top of table
Parameters
| Name | Type | Description |
|---|---|---|
builder | ConsoleTableBuilder | - |
title | String | - |
foregroundColor | ConsoleColor | text color |
Add title row on top of table
Parameters
| Name | Type | Description |
|---|---|---|
builder | ConsoleTableBuilder | - |
title | String | - |
foregroundColor | ConsoleColor | text color |
backgroundColor | ConsoleColor | background color |
WithTextAlignment(ConsoleTableBuilder,
Dictionary(Of Int32, TextAligntment))Text alignment definition
Parameters
| Name | Type | Description |
|---|---|---|
builder | ConsoleTableBuilder | - |
alignmentData | Dictionary(Of Int32, TextAligntment) | - |
Export(ConsoleTableBuilder)
export the table print content string
Parameters
| Name | Type | Description |
|---|---|---|
builder | ConsoleTableBuilder | - |
ExportAndWrite(ConsoleTableBuilder,
TableAligntment)export the table content as string and do console write
Parameters
| Name | Type | Description |
|---|---|---|
builder | ConsoleTableBuilder | - |
alignment | TableAligntment | - |
ExportAndWriteLine(ConsoleTableBuilder,
TableAligntment)console write line of the table data
Parameters
| Name | Type | Description |
|---|---|---|
builder | ConsoleTableBuilder | - |
alignment | TableAligntment | - |
RealLength(
String, Boolean)Get the real width for do console print of a string
Remarks
1 char width for ascii character, and 2 char width for chinese character.
Parameters
| Name | Type | Description |
|---|---|---|
value | String | - |
withUtf8Characters | Boolean | - |
AddColumn(ConsoleTableBuilder,
String)WithColumn(ConsoleTableBuilder, List(Of String))
AddRow(ConsoleTableBuilder,
Object())WithPaddingLeft(ConsoleTableBuilder,
String)WithPaddingRight(ConsoleTableBuilder,
String)WithHeaderTextAlignment(ConsoleTableBuilder,
Dictionary(Of Int32, TextAligntment))WithMinLength(ConsoleTableBuilder,
Dictionary(Of Int32, Int32))TrimColumn(ConsoleTableBuilder,
Boolean)WithFormat(ConsoleTableBuilder,
ConsoleTableBuilderFormat)WithCharMapDefinition(ConsoleTableBuilder)
WithCharMapDefinition(ConsoleTableBuilder,
Dictionary(Of CharMapPositions, Char))WithCharMapDefinition(ConsoleTableBuilder,
Dictionary(Of CharMapPositions, Char), Dictionary(Of HeaderCharMapPositions, Char))WithHeaderCharMapDefinition(ConsoleTableBuilder,
Dictionary(Of HeaderCharMapPositions, Char))