Table of Contents

Class HtmlTableGenerator

Namespace
SunamoHtml.Generators
Assembly
SunamoHtml.dll

EN: HTML table generator with methods for creating table structure (table, tr, td, th). CZ: HTML generátor tabulek s metodami pro vytváření struktury tabulky (table, tr, td, th).

public class HtmlTableGenerator : HtmlGeneratorExtended
Inheritance
HtmlTableGenerator
Inherited Members
Extension Methods

Methods

EndTable()

Writes the closing table tag.

public void EndTable()

EndTd()

Writes the closing td tag.

public void EndTd()

EndTr()

Writes the closing tr tag.

public void EndTr()

StartTable()

Writes the opening table tag.

public void StartTable()

StartTd()

Writes the opening td tag.

public void StartTd()

StartTr(string)

Writes the opening tr tag with CSS class.

public void StartTr(string cssClass)

Parameters

cssClass string

CSS class to apply to the tr element.

WriteRow(string, IList<string>)

Writes a table row with td (data) cells.

public void WriteRow(string cssClass, IList<string> possibleAnswersAll)

Parameters

cssClass string

CSS class to apply to the tr element.

possibleAnswersAll IList<string>

List of cell contents.

WriteRow(string, int)

Writes a table row with specified number of empty td cells.

public void WriteRow(string cssClass, int count)

Parameters

cssClass string

CSS class to apply to the tr element.

count int

Number of empty cells to generate.

WriteRowTh(string, IList<string>)

Writes a table row with th (header) cells.

public void WriteRowTh(string cssClass, IList<string> possibleAnswersAll)

Parameters

cssClass string

CSS class to apply to the tr element.

possibleAnswersAll IList<string>

List of cell contents.

WriteRowWorker(Action<string>, string, IList<string>)

Worker method that generates a table row with specified cell writer action.

public void WriteRowWorker(Action<string> cellWriter, string cssClass, IList<string> possibleAnswersAll)

Parameters

cellWriter Action<string>

Action to write each cell (WriteTh or WriteTd).

cssClass string

CSS class to apply to the tr element.

possibleAnswersAll IList<string>

List of cell contents.