Table of Contents

Method GetCustomProperty

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

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

document WordDocument

The document.

name string

The name.

Returns

DocumentCustomProperty

The property, or null.

Exceptions

ArgumentNullException

An argument is null.