.net - How to cleanly save richtextbox content? -


i've got problem : creating text editor, save richtextbox content in rtf file. i'm ok, test it, and, adding text alignement option, release alignement not saved in rtf file ! said, know how save cleanly text, i.e. saving fonts properties text alignement ?

you can try this: file.writealllines(filename, richtextbox1.lines);

or this: rtftextbox.savefile(filename);

add richtextboxstreamtype e.g.

rtftextbox.savefile(filename, richtextboxstreamtype.richtext); 

or

rtftextbox.savefile(filename, richtextboxstreamtype.texttextoleobjs); 

Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -