C# Класс IrcShark.Extensions.Terminal.ConsoleTable

Handles building of Console Tables.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AppendRow ( IList rowData ) : void

Adds a row of data to the table.

ConsoleTable ( ) : System

Initializes a new instance of the ConsoleTable class.

InsertRow ( IList rowData ) : void

Inser the given row data at the beginning of the table. Much the same as PrependRow().

InsertRow ( IList rowData, int rowIndex ) : void

Insert the given row data at the given row index.

PrependRow ( IList rowData ) : void

Prepends a row of data to the table.

SetFooters ( IList footers ) : void

Adds footers to the table.

SetHeaders ( IList headers ) : void

Adds headers to the table.

ToString ( ) : string

Приватные методы

Метод Описание
BuildTable ( ) : string

Creates the table

CalculateCellLengths ( ArrayList rowData ) : void

Calculates the maximum cell length for each column and stores it in the cellLengths array.

GetFooterLine ( ) : string

Returns a string composed of the footers for the table

GetHeaderLine ( ) : string

Returns a string composed of the headers for the table

GetSeparator ( ) : string

Returns a string composed of a separator line

UpdateRowsCols ( ArrayList rowData ) : void

Updates maxrows and maxcols values

ValidateTable ( ) : void

Описание методов

AppendRow() публичный Метод

Adds a row of data to the table.
public AppendRow ( IList rowData ) : void
rowData IList An IList of the row data.
Результат void

ConsoleTable() публичный Метод

Initializes a new instance of the ConsoleTable class.
public ConsoleTable ( ) : System
Результат System

InsertRow() публичный Метод

Inser the given row data at the beginning of the table. Much the same as PrependRow().
public InsertRow ( IList rowData ) : void
rowData IList An IList of the row data.
Результат void

InsertRow() публичный Метод

Insert the given row data at the given row index.
public InsertRow ( IList rowData, int rowIndex ) : void
rowData IList An IList of the row data.
rowIndex int Row index to insert at.
Результат void

PrependRow() публичный Метод

Prepends a row of data to the table.
public PrependRow ( IList rowData ) : void
rowData IList An IList of the row data.
Результат void

SetFooters() публичный Метод

Adds footers to the table.
public SetFooters ( IList footers ) : void
footers IList An IList collection of the headers.
Результат void

SetHeaders() публичный Метод

Adds headers to the table.
public SetHeaders ( IList headers ) : void
headers IList An IList collection of the headers.
Результат void

ToString() публичный Метод

public ToString ( ) : string
Результат string