Table of Contents

Class DocxTable

Namespace
PDiffy
Assembly
PDiffy.dll

A table: its grid, rows and cells, and the widths, margins and borders it sets.

public sealed record DocxTable : DocxBlock, IEquatable<DocxBlock>, IEquatable<DocxTable>
Inheritance
DocxTable
Implements
Inherited Members

Properties

Between

Bookmarks and content PDiffy can't read between the rows.

public IReadOnlyList<DocxBetween> Between { get; init; }

Property Value

IReadOnlyList<DocxBetween>

Borders

The table's own borders, one per side the table sets.

public IReadOnlyList<DocxBorder> Borders { get; init; }

Property Value

IReadOnlyList<DocxBorder>

Caption

The table's title, the first part of its alt text in Word.

public string? Caption { get; init; }

Property Value

string

CellMargins

The space between each cell's edge and its text, unless a cell sets its own.

public IReadOnlyList<DocxMargin> CellMargins { get; init; }

Property Value

IReadOnlyList<DocxMargin>

Description

The table's description, the rest of its alt text in Word.

public string? Description { get; init; }

Property Value

string

Other

A hash of the table's own formatting PDiffy doesn't read, such as w:tblLook or w:tblInd, so changing it changes the snapshot; null when it has none. Only its own formatting counts, not what it inherits, and noise Word writes everywhere is left out.

public string? Other { get; init; }

Property Value

string

Revisions

Tracked changes to the table's properties (TableFormat) or its columns (TableGrid).

public IReadOnlyList<DocxRevision> Revisions { get; init; }

Property Value

IReadOnlyList<DocxRevision>

Rows

The rows in order, including those inside content controls such as a repeating section.

public IReadOnlyList<DocxRow> Rows { get; init; }

Property Value

IReadOnlyList<DocxRow>

Style

The table style's id, or null when the table names none.

public string? Style { get; init; }

Property Value

string

Width

The width of the whole table, or null when it doesn't set one.

public DocxWidth? Width { get; init; }

Property Value

DocxWidth

Widths

The width of each column of the table's grid, in points.

public IReadOnlyList<double> Widths { get; init; }

Property Value

IReadOnlyList<double>