ToggleShowCodes Method 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