Table of Contents

Method AddSource

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

AddSource(WordDocument, DocumentPosition, BibliographySource)

Adds a source to the document's list (Word's Create Source, Manage Sources > Copy). One undo step.

public static DocumentEdit AddSource(this WordDocument document, DocumentPosition at, BibliographySource source)

Parameters

document WordDocument

The document.

at DocumentPosition

Where the caret is.

source BibliographySource

The source; its tag new to the document.

Returns

DocumentEdit

The edit.

Exceptions

ArgumentNullException

An argument is null.

ArgumentException

The position is not in the document, the tag is empty, too long or taken.