Method GetCustomProperty
GetCustomProperty(WordDocument, string)
Finds a custom property by its name, ignoring case as Word does.
public static DocumentCustomProperty? GetCustomProperty(this WordDocument document, string name)
Parameters
documentWordDocumentThe document.
namestringThe name.
Returns
- DocumentCustomProperty
The property, or null.
Exceptions
- ArgumentNullException
An argument is null.