Table of Contents

Class DocumentPreservation

Namespace
DocWright.Dom
Assembly
DocWright.Dom.dll

Everything preserved from the source package that is not represented in the document tree: opaque parts, the package's relationship table, and the counts of known-transient markup that was deliberately not modeled (proofing marks, cached page-break hints). Together with the unknown-XML islands on nodes, this guarantees zero silent drops.

public sealed class DocumentPreservation
Inheritance
DocumentPreservation
Inherited Members

Constructors

DocumentPreservation()

Properties

IgnoredElements

Gets the counts of skipped known-transient elements, keyed by qualified element name (for example "w:proofErr"), sorted ordinally.

Parts

Gets the preserved opaque parts, in discovery order.

Relationships

Gets the source package's relationship table, in discovery order, or an empty list for documents created in memory. See PackageRelationship for why a writer needs it.

Methods

AddPart(PreservedPart)

Records a preserved part.

AddRelationship(PackageRelationship)

Records one entry of the source package's relationship table.

CountIgnoredElement(string)

Increments the skip count of a known-transient element.