Table of Contents

Method RemoveDocumentVariable

Namespace
DocWright.Word.Editing
Assembly
DocWright.Word.dll

RemoveDocumentVariable(WordDocument, string)

Removes a variable (named in any case); the element goes with the last one.

public static DocumentEdit RemoveDocumentVariable(this WordDocument document, string name)

Parameters

document WordDocument

The document.

name string

The name.

Returns

DocumentEdit

The edit (empty when the document has no such variable).

Exceptions

ArgumentNullException

An argument is null.