MarkdownTable
Namespace: Markdown
Markdown table.
public class MarkdownTable : IMarkdownBlockElement
Inheritance Object → MarkdownTable
Implements IMarkdownBlockElement
Properties
Header
Gets the header.
public MarkdownTableHeader Header { get; }
Property Value
MarkdownTableHeader
The header.
ColumnCount
Gets the number of columns.
public int ColumnCount { get; }
Property Value
RowsCount
Gets the number of rows.
public int RowsCount { get; }
Property Value
RowsCapacity
Gets or sets the rows capacity.
public int RowsCapacity { get; set; }
Property Value
Int32
The rows capacity.
Constructors
MarkdownTable(MarkdownTableHeader)
Initializes a new instance of the MarkdownTable class.
public MarkdownTable(MarkdownTableHeader header)
Parameters
header
MarkdownTableHeader
The header.
MarkdownTable(MarkdownTableHeader, IEnumerable<MarkdownTableRow>)
Initializes a new instance of the MarkdownTable class.
public MarkdownTable(MarkdownTableHeader header, IEnumerable<MarkdownTableRow> rows)
Parameters
header
MarkdownTableHeader
The header.
rows
IEnumerable<MarkdownTableRow>
The rows.
MarkdownTable(MarkdownTableHeader, Int32)
Initializes a new instance of the MarkdownTable class.
public MarkdownTable(MarkdownTableHeader header, int capacity)
Parameters
header
MarkdownTableHeader
The header.
capacity
Int32
The row capacity.
Methods
AddRow(MarkdownTableRow)
Adds the specific row at the end of the table.
public void AddRow(MarkdownTableRow row)
Parameters
row
MarkdownTableRow
The row to be added.
AddRowRange(IEnumerable<MarkdownTableRow>)
Adds the specific rows at the end of the table.
public void AddRowRange(IEnumerable<MarkdownTableRow> rows)
Parameters
rows
IEnumerable<MarkdownTableRow>
The rows to be added.
GetRowAt(Int32)
Gets the row at the specific index.
public MarkdownTableRow GetRowAt(int index)
Parameters
index
Int32
The row index.
Returns
MarkdownTableRow
The row
RemoveRowAt(Int32)
Remove the row at the specific index.
public void RemoveRowAt(int index)
Parameters
index
Int32
The row index.
ToString()
Returns a string that represents the current markdown table.
public string ToString()
Returns
String
A string that represents the current markdown table.