Method ReadDocumentVariables
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
documentWordDocumentThe document.
Returns
- IReadOnlyList<KeyValuePair<string, string>>
The variables by name, in order; empty when the document has none.
Exceptions
- ArgumentNullException
documentis null.