简体   繁体   中英

display all field codes (instead of results)

I need to display the fields code and use:

Document.Content.Fields.ToggleShowCodes

I have fields, some are in text boxes and need showing all of them.

But the above toggles - and I need more control. If the codes are showing, performs display fields results.

So I need if fields code are showing, do nothing, else show all fields code, even if they're are in the text boxes.

You can use the View.ShowFieldCodes property which takes/accepts a Boolean:

ActiveWindow.View.ShowFieldCodes = True

It doesn't matter whether any or no field codes are currently displayed: ALL will be displayed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM