readme.txt

来自「xhtml到rtf的转换程序!带源码!」· 文本 代码 · 共 7 行

TXT
7
字号
This sample includes a custom RichTextBox control that can parse and display a small subset of XHTML (simple tags used for text font, alignment, color, etc.).  It offers an alternative to writing cumbersome RTF code when one wants to display a document with varying styles of text in a control.  The sample also shows how one can use objects in the System.Xml namespace to process markup.

The "Xhtml Displaying Rich Text Box" solution contains an application to show off the control.  It also contains a more detailed readme, written in Xhtml, that describes the control's capabilities (the control itself will display this Xhtml readme if you press the "View Readme" button in the application).

To see the control in action, open the "Xhtml Displaying Rich Text Box" solution. Then add to it the "RichTextBoxSupportsXHTML" project.  Build the latter project and add a reference to its generated assembly in the first project.  Build the whole solution and run.

To use the control yourself, merely set its "Xhtml" property to the string of XHTML you want to display.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?