Namespace: Grynwald.MarkdownGenerator
Assembly: Grynwald.MarkdownGenerator
Represents a table in a Markdown document.
public sealed class MdTable : MdLeafBlock, IReadOnlyCollection<MdTableRow>, IEnumerable<MdTableRow>, IEnumerable
Inheritance: object → MdBlock → MdLeafBlock → MdTable
Implements: IReadOnlyCollection<MdTableRow>,IEnumerable<MdTableRow>,IEnumerable
CommonMark does not specify a table format, but tables are common in GitHub Flavored Markdown. Tables can be serialized either as GitHub Flavored Markdown tables (default) or inline HTML-tables. For details see TableStyle
Name | Description |
---|---|
MdTable(MdTableRow, IEnumerable<MdTableRow>) | Initializes a new instance of MdTable with the specified content |
MdTable(MdTableRow, MdTableRow[]) | Initializes a new instance of MdTable with the specified content |
Name | Description |
---|---|
ColumnCount | Gets the number of columns in the table |
Count | Gets the number of rows in the table. |
HeaderRow | Gets the table's header row |
RowCount | Gets the number of rows in the table |
Rows | Gets the table's rows |
Name | Description |
---|---|
Add(MdTableRow) | Adds the specified row to the table |
DeepEquals(MdBlock) | Recursively compares the block to the specified instance of MdBlock. |
GetEnumerator() | Returns an enumerator that iterates through the table's rows. |
Insert(int, MdTableRow) | Inserts the a row at the specified index. |
Documentation generated by MdDocs