📄 readme.txt
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -