MarkdownTable
Namespace: TagBites.Text.Markdown
Assembly: TagBites.Text.Markdown.dll
Product: TagBites.Text.Markdown v. 2.2.0
A table with a header row, written with the | marker.
public class MarkdownTable : TagBites.Text.Markdown.MarkdownElementInheritance: object → MarkdownElement → MarkdownTable
Remarks
Section titled “Remarks”The table comes from the GitHub Flavored Markdown tables extension, where a cell holds inline content only. A cell escapes | and writes a line break as a space. The table pads every column to an equal width.
Constructors
Section titled “Constructors”MarkdownTable()
Section titled “MarkdownTable()”public MarkdownTable()Properties
Section titled “Properties”Alignments
Section titled “Alignments”Gets the alignment of each column. A column without an entry uses MarkdownTableColumnAlignment.None.
public IList<MarkdownTableColumnAlignment> Alignments { get; }Property Value
Section titled “Property Value”IList<MarkdownTableColumnAlignment>
Headers
Section titled “Headers”Gets the header of each column, which also sets the number of columns.
public IList<MarkdownText> Headers { get; }Property Value
Section titled “Property Value”Gets the rows of the table, each holding the cells of one row.
public IList<IList<MarkdownText>> Rows { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Resolve(MarkdownRenderer)
Section titled “Resolve(MarkdownRenderer)”Writes the element into renderer.
protected internal virtual void Resolve(MarkdownRenderer renderer)Parameters
Section titled “Parameters”rendererMarkdownRenderer
SetAlignments(MarkdownTableColumnAlignment[])
Section titled “SetAlignments(MarkdownTableColumnAlignment[])”Replaces the alignment of all columns with alignments.
public MarkdownTable SetAlignments(MarkdownTableColumnAlignment[] alignments)Parameters
Section titled “Parameters”alignmentsMarkdownTableColumnAlignment[]
Returns
Section titled “Returns”SetHeaders(MarkdownText[])
Section titled “SetHeaders(MarkdownText[])”Replaces all column headers with columns.
public MarkdownTable SetHeaders(MarkdownText[] columns)Parameters
Section titled “Parameters”columnsMarkdownText[]
Returns
Section titled “Returns”Remarks
Section titled “Remarks”To append a single header, use WithHeader(MarkdownText).
SetHeaders(string[])
Section titled “SetHeaders(string[])”Replaces all column headers with columns.
public MarkdownTable SetHeaders(string[] columns)Parameters
Section titled “Parameters”columnsstring[]
Returns
Section titled “Returns”Remarks
Section titled “Remarks”To append a single header, use WithHeader(MarkdownText).
WithHeader(MarkdownText)
Section titled “WithHeader(MarkdownText)”Appends a single column header.
public MarkdownTable WithHeader(MarkdownText text)Parameters
Section titled “Parameters”textMarkdownText
Returns
Section titled “Returns”WithHeader(MarkdownText, MarkdownTableColumnAlignment)
Section titled “WithHeader(MarkdownText, MarkdownTableColumnAlignment)”Appends a single column header with the given alignment.
public MarkdownTable WithHeader(MarkdownText text, MarkdownTableColumnAlignment alignment)Parameters
Section titled “Parameters”textMarkdownTextalignmentMarkdownTableColumnAlignment
Returns
Section titled “Returns”WithRow(MarkdownText[])
Section titled “WithRow(MarkdownText[])”Appends a row built from the given cells.
public MarkdownTable WithRow(MarkdownText[] textCells)Parameters
Section titled “Parameters”textCellsMarkdownText[]
Returns
Section titled “Returns”WithRow(string[])
Section titled “WithRow(string[])”Appends a row built from the given cells.
public MarkdownTable WithRow(string[] textCells)Parameters
Section titled “Parameters”textCellsstring[]
Returns
Section titled “Returns”WithRow(IList<MarkdownText>)
Section titled “WithRow(IList<MarkdownText>)”Appends a row built from the given cells.
public MarkdownTable WithRow(IList<MarkdownText> textCells)Parameters
Section titled “Parameters”textCellsIList<MarkdownText>
Returns
Section titled “Returns”WithRow(IList<string>)
Section titled “WithRow(IList<string>)”Appends a row built from the given cells.
public MarkdownTable WithRow(IList<string> textCells)