Table of Contents

Method RemoveSource

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

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

document WordDocument

The document.

at DocumentPosition

Where the caret is.

tag string

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