Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

TableBlock

OfficeIMO.Markdown

Namespace
OfficeIMO.Markdown
Assembly
OfficeIMO.Markdown
Source revision
0eef6a5756b9 with working tree changes
Implements
IMarkdownBlock ISyntaxMarkdownBlock IChildMarkdownBlockContainer ISyntaxChildrenMarkdownBlock IOwnedSyntaxChildrenMarkdownBlock IHtmlAppendableMarkdownBlock
Modifiers
sealed

Pipe table with optional header row.

Inheritance

Usage

Explore 4 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Constructors

public TableBlock() #

Methods

public IEnumerable<TableCell> EnumerateCells() #

Enumerates header and body cells in document order, preserving row/column metadata on each cell.

Returns

IEnumerable<TableCell>
public IEnumerable<TableRow> EnumerateRows() #

Enumerates header and body rows in document order.

Returns

IEnumerable<TableRow>
public TableCell? GetCell(int rowIndex, int columnIndex) #

Gets a body cell by zero-based row and column index.

Parameters

rowIndex int required
columnIndex int required

Returns

TableCell?
public TableCell? GetHeaderCell(int columnIndex) #

Gets a header cell by zero-based column index.

Parameters

columnIndex int required

Returns

TableCell?

Properties

public List<string> Headers { get; } #

Optional header cells.

public IReadOnlyList<TableCell> HeaderCells { get; } #

Typed header cell content.

public TableRow? HeaderRow { get; } #

Typed header row, or null when the table has no header.

public IReadOnlyList<InlineSequence> HeaderInlines { get; } #

Parsed inline representation of the current header cells.

public List<IReadOnlyList<string>> Rows { get; } #

Data rows.

public IReadOnlyList<IReadOnlyList<TableCell>> RowCells { get; } #

Typed row cell content.

public IReadOnlyList<TableRow> BodyRows { get; } #

Typed body rows.

public IReadOnlyList<IMarkdownBlock> ChildBlocks { get; } #

Structured child blocks flattened from header and body cells in table order.

public IReadOnlyList<IReadOnlyList<InlineSequence>> RowInlines { get; } #

Parsed inline representation of the current data rows.

public List<MarkdownColumnAlignment> Alignments { get; } #

Optional column alignments per column (used when headers are present).

public List<OfficeLength?> ColumnWidths { get; } #

Optional fixed physical column widths. Null entries are sized by weights or defaults.

public List<double> ColumnWidthWeights { get; } #

Optional relative column width weights. Missing columns default to 1.0 in consumers that support widths.

public int SkippedRowCount { get; internal set; } #

Number of rows skipped due to table limits.

public int SkippedColumnCount { get; internal set; } #

Number of columns skipped due to table limits.