?? hrichtextbox.cs
字號(hào):
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;
using System.IO;
using System.Text;
namespace CallCenter.BusinessInterfaces.MainForms
{
/// <summary>
/// HRichTextBox 的摘要說明。
/// </summary>
public class HRichTextBox : System.Windows.Forms.UserControl
{
private System.Windows.Forms.ToolBar toolBar1;
private System.Windows.Forms.ToolBarButton toolBarButton1;
private System.Windows.Forms.ToolBarButton toolBarButton2;
private System.Windows.Forms.ToolBarButton toolBarButton3;
private System.Windows.Forms.ToolBarButton toolBarButton4;
private System.Windows.Forms.ToolBarButton toolBarButton6;
private System.Windows.Forms.ToolBarButton toolBarButton7;
private System.Windows.Forms.FontDialog fontDialog1;
private System.Windows.Forms.ColorDialog colorDialog1;
private System.Windows.Forms.ToolBarButton toolBarButton8;
private System.Windows.Forms.ToolBarButton toolBarButton9;
private System.Windows.Forms.ToolBarButton toolBarButton10;
private System.Windows.Forms.OpenFileDialog openFileDialog1;
private System.Windows.Forms.SaveFileDialog saveFileDialog1;
private System.Windows.Forms.ImageList imageList1;
private System.Windows.Forms.ToolBarButton toolBarButton5;
private System.Windows.Forms.ToolBarButton toolBarButton11;
private System.Windows.Forms.ToolBarButton toolBarButton12;
private System.Windows.Forms.ToolBarButton toolBarButton13;
private System.Windows.Forms.ToolBarButton toolBarButton14;
private System.Windows.Forms.ToolBarButton toolBarButton15;
private System.Windows.Forms.ToolBarButton toolBarButton16;
private System.Windows.Forms.ToolBarButton toolBarButton17;
private System.Windows.Forms.ContextMenu contextMenu1;
private System.Windows.Forms.MenuItem menuItem1;
private System.Windows.Forms.MenuItem menuItem2;
private System.Windows.Forms.MenuItem menuItem3;
private System.Windows.Forms.ToolBarButton toolBarButton18;
private System.Windows.Forms.ToolBarButton toolBarButton19;
private System.Windows.Forms.ToolBarButton toolBarButton20;
private System.Windows.Forms.ToolBarButton toolBarButton21;
public System.Windows.Forms.RichTextBox richTextBox1;
private DevExpress.XtraEditors.PanelControl panelControl1;
private System.ComponentModel.IContainer components;
public HRichTextBox()
{
// 該調(diào)用是 Windows.Forms 窗體設(shè)計(jì)器所必需的。
InitializeComponent();
// TODO: 在 InitializeComponent 調(diào)用后添加任何初始化
}
/// <summary>
/// 清理所有正在使用的資源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region 組件設(shè)計(jì)器生成的代碼
/// <summary>
/// 設(shè)計(jì)器支持所需的方法 - 不要使用代碼編輯器
/// 修改此方法的內(nèi)容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.toolBar1 = new System.Windows.Forms.ToolBar();
this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton2 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton3 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton5 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton4 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton17 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton11 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton6 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton7 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton12 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton8 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton9 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton10 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton13 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton14 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton15 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton16 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton18 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton19 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton20 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton21 = new System.Windows.Forms.ToolBarButton();
this.contextMenu1 = new System.Windows.Forms.ContextMenu();
this.menuItem1 = new System.Windows.Forms.MenuItem();
this.menuItem2 = new System.Windows.Forms.MenuItem();
this.menuItem3 = new System.Windows.Forms.MenuItem();
this.fontDialog1 = new System.Windows.Forms.FontDialog();
this.colorDialog1 = new System.Windows.Forms.ColorDialog();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.panelControl1 = new DevExpress.XtraEditors.PanelControl();
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
this.panelControl1.SuspendLayout();
this.SuspendLayout();
//
// toolBar1
//
this.toolBar1.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
this.toolBarButton1,
this.toolBarButton2,
this.toolBarButton3,
this.toolBarButton5,
this.toolBarButton4,
this.toolBarButton17,
this.toolBarButton11,
this.toolBarButton6,
this.toolBarButton7,
this.toolBarButton12,
this.toolBarButton8,
this.toolBarButton9,
this.toolBarButton10,
this.toolBarButton13,
this.toolBarButton14,
this.toolBarButton15,
this.toolBarButton16,
this.toolBarButton18,
this.toolBarButton19,
this.toolBarButton20,
this.toolBarButton21});
this.toolBar1.DropDownArrows = true;
this.toolBar1.Location = new System.Drawing.Point(0, 0);
this.toolBar1.Name = "toolBar1";
this.toolBar1.ShowToolTips = true;
this.toolBar1.Size = new System.Drawing.Size(664, 41);
this.toolBar1.TabIndex = 0;
this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
//
// toolBarButton1
//
this.toolBarButton1.Tag = "居左";
this.toolBarButton1.Text = "居左";
this.toolBarButton1.ToolTipText = "居左";
//
// toolBarButton2
//
this.toolBarButton2.Tag = "居中";
this.toolBarButton2.Text = "居中";
this.toolBarButton2.ToolTipText = "居中";
//
// toolBarButton3
//
this.toolBarButton3.Tag = "居右";
this.toolBarButton3.Text = "居右";
this.toolBarButton3.ToolTipText = "居右";
//
// toolBarButton5
//
this.toolBarButton5.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButton4
//
this.toolBarButton4.Tag = "導(dǎo)出";
this.toolBarButton4.Text = "導(dǎo)出";
this.toolBarButton4.ToolTipText = "導(dǎo)出";
//
// toolBarButton17
//
this.toolBarButton17.Tag = "導(dǎo)入";
this.toolBarButton17.Text = "導(dǎo)入";
this.toolBarButton17.ToolTipText = "導(dǎo)入";
//
// toolBarButton11
//
this.toolBarButton11.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButton6
//
this.toolBarButton6.Tag = "字體";
this.toolBarButton6.Text = "字體";
this.toolBarButton6.ToolTipText = "字體";
//
// toolBarButton7
//
this.toolBarButton7.Tag = "顏色";
this.toolBarButton7.Text = "顏色";
this.toolBarButton7.ToolTipText = "顏色";
//
// toolBarButton12
//
this.toolBarButton12.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButton8
//
this.toolBarButton8.Tag = "剪切";
this.toolBarButton8.Text = "剪切";
this.toolBarButton8.ToolTipText = "剪切";
//
// toolBarButton9
//
this.toolBarButton9.Tag = "粘貼";
this.toolBarButton9.Text = "粘貼";
this.toolBarButton9.ToolTipText = "粘貼";
//
// toolBarButton10
//
this.toolBarButton10.Tag = "復(fù)制";
this.toolBarButton10.Text = "復(fù)制";
this.toolBarButton10.ToolTipText = "復(fù)制";
//
// toolBarButton13
//
this.toolBarButton13.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButton14
//
this.toolBarButton14.Tag = "查找";
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -