Method AddSource
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
documentWordDocumentThe document.
atDocumentPositionWhere the caret is.
sourceBibliographySourceThe 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.