Table of Contents

Method ReadDocumentVariables

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

ReadDocumentVariables(WordDocument)

Reads the document's variables, in the order the settings state them.

public static IReadOnlyList<KeyValuePair<string, string>> ReadDocumentVariables(this WordDocument document)

Parameters

document WordDocument

The document.

Returns

IReadOnlyList<KeyValuePair<string, string>>

The variables by name, in order; empty when the document has none.

Exceptions

ArgumentNullException

document is null.