You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Am I wrong or background color is missed?
I'm serarching just for this feature. I've tried making this for myself but I could'nt show text whith other background color than main in RichTextControl.
It's, at last, curious you missed just this.
Can someone help me?
The text was updated successfully, but these errors were encountered:
I needed the ability to highlight certain blocks of text so I went ahead and added highlight support based on version 0.4.0. RtfDocument.zip
I first tried adding support for setting a background color but that didn't seem to work when the file was rendered in Microsoft Word. The challenge with highlighting is that there's no end tag so any text that's added with a highlight must be wrapped in a group. The code I wrote automatically adds that group. While highlighting in the Rtf spec technically allows different colors to be used I only implemented a stock yellow highlight.
The following file was modified:
RtfDocument.cs
The following methods were modified to add a new default parameter:
public void AddText(string text, RtfCharFormat format)
public void AddText(string text)
private void InsertText(string text)
Am I wrong or background color is missed?
I'm serarching just for this feature. I've tried making this for myself but I could'nt show text whith other background color than main in RichTextControl.
It's, at last, curious you missed just this.
Can someone help me?
The text was updated successfully, but these errors were encountered: