Method RemoveCustomProperty
RemoveCustomProperty(WordDocument, DocumentPosition, string)
Removes a custom property (named in any case); the part and its relationship go with the last one.
public static DocumentEdit RemoveCustomProperty(this WordDocument document, DocumentPosition at, string name)
Parameters
documentWordDocumentThe document.
atDocumentPositionA position in the document (where the edit's caret stays).
namestringThe name.
Returns
- DocumentEdit
The edit (empty when the document has no such property).
Exceptions
- ArgumentNullException
An argument is null.