Table of Contents

Class CellFormat

Namespace
DocWright.Dom
Assembly
DocWright.Dom.dll

Sparse table-cell formatting (ECMA-376 Part 1 §17.4.70 w:tcPr).

public sealed class CellFormat : UnknownXmlHost
Inheritance
CellFormat
Inherited Members

Constructors

CellFormat()

Properties

Borders

Gets or sets the cell borders (w:tcBorders), or null.

ConditionalFormatMask

Gets or sets the raw 12-digit cnfStyle bitmask written by Word (§17.4.7), or null. DocWright recomputes conditional formatting from cell position and w:tblLook; the raw value is kept for round-trip only.

FitText

Gets or sets fit-text compression (w:tcFitText), or null.

GridSpan

Gets or sets the number of grid columns the cell spans (w:gridSpan), or null.

HideMark

Gets or sets whether the end-of-cell mark is ignored for row height (w:hideMark), or null.

Margins

Gets or sets the cell margins (w:tcMar), or null.

NoWrap

Gets or sets no-wrap (w:noWrap), or null.

Shading

Gets or sets the cell shading (w:shd), or null.

TextDirection

Gets or sets the text flow direction (w:textDirection), or null.

VerticalAlignment

Gets or sets the vertical alignment of cell content (w:vAlign), or null.

VerticalMerge

Gets or sets the cell's vertical-merge participation (w:vMerge), or null.

Width

Gets or sets the preferred cell width (w:tcW), or null.

Methods

Clone()

Creates a deep copy, including preserved unknown-XML islands.

OverlayOnto(CellFormat)

Copies every specified value onto target (last-writer-wins; border sets and margins merge edge-by-edge).