How to programmatically hide bookmarks, xml nodes and editable regions?

How do I programmatically hide bookmark carets, XML nodes and the caret and background colour for editable regions in a protected document?

[616 byte] By [JohanNordberg] at [2007-12-16]
# 1

Hi

I presume you are referring to the highlighting options within word when having an XML schema attached.

' Shows the XMLMarkup in a document and other view properties

ActiveWindow.View.ShowXMLMarkup = wdToggle ActiveWindow.View.ShowPicturePlaceHolders = False
ActiveWindow.View.ShowFieldCodes = False
ActiveWindow.ShowBookmarks = False
ActiveWindow.FieldShading = wdFieldShadingWhenSelected
ActiveWindow.ShowHighlight = False

Hope this helps

MikeWalker at 2007-9-9 > top of Msdn Tech,Visual Studio Tools for Office,Visual Studio Tools for Office...
# 2
Thank you!

I found this as well, this.ActiveWindow.View.ShadeEditableRanges = 0; and now I've solved all my problems. You got me on the right track!

JohanNordberg at 2007-9-9 > top of Msdn Tech,Visual Studio Tools for Office,Visual Studio Tools for Office...