Hi
We are developing a Word/VSTO solution that contains editable sections. The issue is that if you turn the off "Highlight the regions I can edit" it is very difficult for the users to determine where they can write. The problem with using the "Highlight" is that in sections of the document the font is white (white text on a blue Banner). When this is highlighted yellow you can not read the text.
The more intuitive way to work would be to highlight the protected areas in light grey. Second best would be the option to change the highlight colour. I can not find a way to do this in the docuemnt or in code.
Any ideas/suggestions would be appreciated.
Thanks
Joanne

Change the colour that indicates sections that are editable
Pawnder
There isn't a way to change the highlight colour used by Word to shade editable regions. You can programmatically turn shading of editable regions off by using the Window.View.ShadeEditableRanges property and setting it to False.
Of course if you do this, you will lose the automatic yellow highlighting that Word provides. You would then have to write some code to highlight the ranges by yourself that are editable in the document, code like:
Range.Shading.BackgroundPatternColor = Word.WdColor.wdColorGray15
Some problems with this approach:
1) If the user selects the entire region and deletes it the gray background color will be lost.
2) The gray background colors will print when the document prints, so you'll have to handle the BeforePrint event and remove the gray background colors before it prints.
Another idea is that if the main reason you have the white text on a blue banner is for the final printed look of the document, you might change the formatting to something that will work with the automatic yellow highlight color and then handle the BeforePrint event to change the formatting to the white on blue for printing and switch it back after the document is printed--you would cancel the BeforePrint event and take over calling printing yourself.