Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 3.26 KB

File metadata and controls

55 lines (39 loc) · 3.26 KB

MdTable Class

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 → MdBlockMdLeafBlock → MdTable

Implements: IReadOnlyCollection<MdTableRow>,IEnumerable<MdTableRow>,IEnumerable

Remarks

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

Constructors

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

Properties

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

Methods

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