/**********************************************************************************************
* 创建时间: 2005-1-19 16:32:06
* 作者: Jack
*
* 介绍: 一个利用ICSharpCode.TextEditor.TextEditorControl控件
* 实现代码语法高亮显示的示例程序,需要引用ICSharpCode.TextEditor.dll文件
* 该文件可以在#develop的库中找到
**********************************************************************************************/
#region UsingBlock
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using ICSharpCode.TextEditor;
using ICSharpCode.TextEditor.Gui.CompletionWindow;
using ICSharpCode.TextEditor.Document;
using ICSharpCode.TextEditor.Actions;
#endregion
namespace HighLightingCodeFile
{
/// <summary>
/// ICSharpCode.TextEditor.
/// TextEditorControl的示例程序
/// </summary>
public class TestCSharpTextBox : System.Windows.Forms.Form
{
#region 私有属性
private ICSharpCode.TextEditor.TextEditorControl textEditorControl;
private System.Windows.Forms.MainMenu mainMenu;
private System.Windows.Forms.MenuItem menuItem1;
private System.Windows.Forms.MenuItem OpenMenu;
private System.Windows.Forms.MenuItem Save;
private System.Windows.Forms.SaveFileDialog saveFileDialog;
private System.Windows.Forms.OpenFileDialog openFileDialog;
private System.Windows.Forms.MenuItem menuItem2;
private System.Windows.Forms.MenuItem menuItem3;
private System.Windows.Forms.MenuItem menuItem4;
private System.Windows.Forms.MenuItem menuItem5;
private System.Windows.Forms.MenuItem menuItem6;
private System.Windows.Forms.MenuItem menuItem7;
private System.Windows.Forms.MenuItem menuItem8;
#endregion
#region 属性
#endregion
#region 构造函数
public TestCSharpTextBox()
{
//