Table of Contents

Method ChangeSource

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

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

document WordDocument

The document.

at DocumentPosition

Where the caret is.

source BibliographySource

The 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.