Method RemoveDocumentVariable
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
documentWordDocumentThe document.
namestringThe name.
Returns
- DocumentEdit
The edit (empty when the document has no such variable).
Exceptions
- ArgumentNullException
An argument is null.