Posted 16 years ago by Paul Hasselfeldt
Version: 4.0.0262
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.


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

Comments (2)

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

Actipro Software Support

Posted 16 years ago by Paul Hasselfeldt
That worked great thanks.
The latest build of this product (v24.1.0) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.