This example demonstrates how to use RichEdit Document API to programmatically manage rich text documents.
The application includes several RichEditControls at the top used to display and edit the code and another RichEditControl (at the bottom) which shows the result of code execution. There are two groups of tabs displaying code - one for C# and another for VB languages. Each group is composed of the main tab displaying the main executable code and the tab which displays the code of the helper class used in the main code snippet. Generally the helper class is not required and the corresponding tab is empty.
You can modify the code and watch the result. The code is executed two seconds after it is modified. If an error occurs during compilation or execution, the code window background color turns to pink.
The WPF RichEdit Document API example is also available.
↧
WinForms RichEdit Document API
↧