I originally planned to use the word Ole editing function, but I don't know what's going on. The word's RTF editing inserts an image, and the image displayed in RichTextBox is rather vague. I have to change it myself.
The exrichtextdemo on codeproject adds the image and text insertion method.
Google hasn't found any control that can set the RTF spacing for a long time.
The spacing settings and printing are added on the basis of exrichtextbox. Currently, only these functions are required. After other functions are used, they are added.
Current rtfedit problems:
Garbled characters will appear in Chinese when appending text functions;
There is a logic problem with font settings, but it is okay to directly input Chinese characters. If you do not select a font, you can simply format all the text;
Do not press Ctrl + V to paste the inserted image. If there is a problem with the inserted image, click the button to insert the image.
You can fix these problems as soon as possible.
CodeBasically, find another one and put it together for the people who need it. Now I find that it is sometimes used. net conflict. To add a line spacing setting, there is basically no way (maybe I still want to learn). When I think of a sentence in program windows, Win32 API is omnipotent, the line spacing control is the API used.
Source code download