Method ChangeSource
ChangeSource(WordDocument, DocumentPosition, BibliographySource)
Replaces a source (Word's Edit Source), by its tag; its citations and bibliography are updated. One undo step.
public static DocumentEdit ChangeSource(this WordDocument document, DocumentPosition at, BibliographySource source)
Parameters
documentWordDocumentThe document.
atDocumentPositionWhere the caret is.
sourceBibliographySourceThe source as it is to be; its tag names the source changed.
Returns
- DocumentEdit
The edit.
Exceptions
- ArgumentNullException
An argument is null.
- ArgumentException
The position is not in the document, or no source has the tag.