C# 클래스 IrcShark.Extensions.Terminal.ConsoleTable

Handles building of Console Tables.
파일 보기 프로젝트 열기: hapm/IrcShark 1 사용 예제들

공개 메소드들

메소드 설명
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