Home Forums General XMetaL Discussion How to use HighlightRange to un-highlight Reply To: How to use HighlightRange to un-highlight

karia

Reply to: How to use HighlightRange to un-highlight

Thanks a lot!
Saving the ids of the highlighted region and un-highlighting works using this:

[code]
var highlightId = ActiveDocument.HighlightRange(location, 12, 1);
[…]
ActiveDocument.SetHighlightedRangeState(highlightId, 2);
[/code]

Just one small problem: In the end of the document small part is highlighted (Screenshot attached is made with your sample customization) This occures on changing the view. Is it possible to omit this?

Reply

Products
Downloads
Support