Table of Contents

Method Rename

Namespace
DocWright.Word.Forms
Assembly
DocWright.Word.dll

Rename(string)

Renames the field and the bookmark of its name around it, as Word's Form Field Options do.

public void Rename(string name)

Parameters

name string

The new name: 1 to 20 characters, a letter first, then letters, digits or underscores; not another field's or bookmark's.

Exceptions

ArgumentNullException

name is null.

ArgumentException

The name is not one Word takes, or is taken.

FormFieldEditException

The preserved markup could not be rewritten.