Method SetBibliographyStyle
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
documentWordDocumentThe document.
atDocumentPositionWhere the caret is.
styleBibliographyStyleAPA, MLA or Chicago.
Returns
- DocumentEdit
The edit.
Exceptions
- ArgumentNullException
documentis null.- ArgumentException
The position is not in the document, or the style is not one this library formats.