Method Rename
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
namestringThe new name: 1 to 20 characters, a letter first, then letters, digits or underscores; not another field's or bookmark's.
Exceptions
- ArgumentNullException
nameis null.- ArgumentException
The name is not one Word takes, or is taken.
- FormFieldEditException
The preserved markup could not be rewritten.