Table of Contents

Method SetBibliographyStyle

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

SetBibliographyStyle(WordDocument, DocumentPosition, BibliographyStyle)

Sets the document's citation style (Word's References > Style); every citation and bibliography follows. One undo step.

public static DocumentEdit SetBibliographyStyle(this WordDocument document, DocumentPosition at, BibliographyStyle style)

Parameters

document WordDocument

The document.

at DocumentPosition

Where the caret is.

style BibliographyStyle

APA, MLA or Chicago.

Returns

DocumentEdit

The edit.

Exceptions

ArgumentNullException

document is null.

ArgumentException

The position is not in the document, or the style is not one this library formats.