Table of Contents

Class CorePropertiesEditingExtensions

Namespace
DocWright.Dom.Editing
Assembly
DocWright.Dom.dll

The document properties of docProps/core.xml, read and set as an edit (Word's File > Info, WQ-0124). The part rides through a load as a preserved part; these read it and rewrite it in place, so every element this model does not name (the revision, the dates, the last author, anything else) is kept as it was.

public static class CorePropertiesEditingExtensions
Inheritance
CorePropertiesEditingExtensions
Inherited Members

Fields

PartUri

The part's URI.

Methods

ReadCoreProperties(WordDocument)

Reads the document's core properties.

SetCoreProperties(WordDocument, DocumentPosition, Action<DocumentCoreProperties>)

Changes the document's core properties as one undoable edit. A property set to null is removed from the part, one set to an empty string is written empty (as Word writes a cleared property); everything else in the part stays. A document without the part gets one. No paragraph changes: the layout is not affected.