Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.9k views
in Technique[技术] by (71.8m points)

c# - How do I save the formatting of a richtextbox and also be able to load it here as well without creating a file on my computer?

How would I be able to save the formatting only of a richtextbox and be able to load in in another richtextbox? I need to be able to modify the formatting or be able to convert it to a string and then back so that I can still change the text between the two richtextboxes but be able to keep the formatting. Let me know if I need to be more clear. My goal is to be able to edit the text between the two richtextboxes slightly but still be able to keep the formatting if that makes sense. Any help is appreciated! Thanks.

Also I am working in WPF and not Winforms.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...