Method RemoveSource
RemoveSource(WordDocument, DocumentPosition, string)
Removes a source no citation names (Word's Manage Sources > Delete). One undo step.
public static DocumentEdit RemoveSource(this WordDocument document, DocumentPosition at, string tag)
Parameters
documentWordDocumentThe document.
atDocumentPositionWhere the caret is.
tagstringThe source's tag.
Returns
- DocumentEdit
The edit.
Exceptions
- ArgumentNullException
An argument is null.
- ArgumentException
The position is not in the document, or no source has the tag.
- InvalidOperationException
A citation names the source.