Posted 12 years ago by Paul Hasselfeldt
Version: 4.0.0262
Avatar
Is there a span indicator that can override either the foreground or background colors independently but not both within the same span indicator?

For example if I wanted to highlight a section of text with a new background color but still preserve the current syntax highlighting colors of the foreground text within that span indicator. I can achieve the desired effect for an entire line by setting the Document.Lines[x].BackColor but I need to support this for a specified TextRange.

Thanks,

[Modified at 03/04/2008 03:35 PM]

Comments (2)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Yes I think if you keep ForeColor == Color.Empty then it will not override the foreground color.


Actipro Software Support

Posted 12 years ago by Paul Hasselfeldt
Avatar
That worked great thanks.
The latest build of this product (v2020.1 build 0400) was released 1 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.