-
-
Notifications
You must be signed in to change notification settings - Fork 9
mattermostbuilders TableMarkdownBuilder
BigMakCode edited this page Aug 5, 2024
·
1 revision
Table markdown builder.
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph Mattermost.Builders
Mattermost.Builders.TableMarkdownBuilder[[TableMarkdownBuilder]]
end
| Returns | Name |
|---|---|
TableMarkdownBuilder |
AddHeader(string``[] headers)Add header to table. |
TableMarkdownBuilder |
AddRow(...)Add row to table. |
string |
ToString()Convert table to markdown string. |
Table markdown builder.
public TableMarkdownBuilder(int columns, TableAlignment tableAlignment)| Type | Name | Description |
|---|---|---|
int |
columns | Columns count. |
TableAlignment |
tableAlignment | Table alignment, default is center. |
Create table builder.
| Name | Description |
|---|---|
| ArgumentOutOfRangeException | If columns count is less than or equal to zero. |
public TableMarkdownBuilder AddHeader(string[] headers)| Type | Name | Description |
|---|---|---|
string``[] |
headers | Headers for columns. |
Add header to table.
Current builder.
| Name | Description |
|---|---|
| ArgumentNullException | If headers count is not equal to columns count. |
public TableMarkdownBuilder AddRow(string[] cells)| Type | Name | Description |
|---|---|---|
string``[] |
cells | Cells in row. |
Add row to table.
Current builder.
| Name | Description |
|---|---|
| ArgumentNullException | If cells count is not equal to columns count. |
| InvalidOperationException | If table header is not added. |
public TableMarkdownBuilder AddRow(object[] cells)| Type | Name | Description |
|---|---|---|
object``[] |
cells | Cells in row. |
Add row to table.
Current builder.
| Name | Description |
|---|---|
| ArgumentNullException | If cells count is not equal to columns count. |
| InvalidOperationException | If table header is not added. |
public override string ToString()Convert table to markdown string.
Markdown string.
| Name | Description |
|---|---|
| InvalidOperationException | If table header is not added. |
Generated with ModularDoc