ToggleShowCodes Method

Applies To

Fields collection object.

Description

Toggles the display of the fields between field codes and field results.

Note Use the ShowCodes property to control the display of an individual field.

Syntax

expression.ToggleShowCodes

expression   An expression that returns a Fields object.

See Also

IncludeFieldCodes property, PrintFieldCodes property, ShowCodes property, ShowFieldCodes property.

Example

This example toggles the display of fields in the selection (the equivalent of pressing SHIFT+F9).

Selection.Fields.ToggleShowCodes
This example toggles the display of fields in the active document (the equivalent of pressing ALT+F9).

ActiveDocument.Fields.ToggleShowCodes