Table of Contents

Method Clone

Namespace
DocWright.Dom
Assembly
DocWright.Dom.dll

Clone()

Creates a detached deep copy of the whole document, remapping the sections' header/footer references onto the cloned parts. The copy reads the original's PartData package source through a view it does not own, so lazy image bytes keep working until the original is disposed, and disposing the copy releases only that view — the original keeps its media.

public WordDocument Clone()

Returns

WordDocument

The copy.