I'm currently writing an extension that provides a custom TextFormattingParagraphProperties
(via ITextParagraphPropertiesFactoryService
). This seems to work fine except for when I want to update the formatting of lines due to changes elsewhere in the document.
It seems that ITextParagraphPropertiesFactoryService.Create()
is called only for each line that the editor has determined is "invalid" (either if the line changes or it becomes visible on screen).
Is there any way I can force the IWpfTextView to refresh it's layout (either of the entire visible document or, ideally, specific lines)?
P.S. The specific feature of TextFormattingParagraphProperties
that I'm using is TextTabProperties
and AFAIK, this is the only way to modify individual spacings of tabs (i.e. so they aren't all uniform)
Thanks