Table of Contents

Method RemoveCustomProperty

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

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

document WordDocument

The document.

at DocumentPosition

A position in the document (where the edit's caret stays).

name string

The name.

Returns

DocumentEdit

The edit (empty when the document has no such property).

Exceptions

ArgumentNullException

An argument is null.