htmleditorcontrol.cs
来自「一个很好用的html编辑器。带源码」· CS 代码 · 共 1,178 行 · 第 1/5 页
CS
1,178 行
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null) components.Dispose();
}
base.Dispose(disposing);
} //Dispose
#endregion
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(HtmlEditorControl));
this.editorWebBrowser = new AxSHDocVw.AxWebBrowser();
this.editorToolbar = new System.Windows.Forms.ToolBar();
this.toolBarCut = new System.Windows.Forms.ToolBarButton();
this.toolBarCopy = new System.Windows.Forms.ToolBarButton();
this.toolBarPaste = new System.Windows.Forms.ToolBarButton();
this.toolBarEditSep1 = new System.Windows.Forms.ToolBarButton();
this.toolBarUndo = new System.Windows.Forms.ToolBarButton();
this.toolBarRedo = new System.Windows.Forms.ToolBarButton();
this.toolBarEditSep2 = new System.Windows.Forms.ToolBarButton();
this.toolBarBold = new System.Windows.Forms.ToolBarButton();
this.toolBarUnderline = new System.Windows.Forms.ToolBarButton();
this.toolBarItalic = new System.Windows.Forms.ToolBarButton();
this.toolBarFont = new System.Windows.Forms.ToolBarButton();
this.toolBarNormal = new System.Windows.Forms.ToolBarButton();
this.toolBarColor = new System.Windows.Forms.ToolBarButton();
this.toolBarFontUp = new System.Windows.Forms.ToolBarButton();
this.toolBarFontDown = new System.Windows.Forms.ToolBarButton();
this.toolBarEditSep3 = new System.Windows.Forms.ToolBarButton();
this.toolBarJustLeft = new System.Windows.Forms.ToolBarButton();
this.toolBarJustCenter = new System.Windows.Forms.ToolBarButton();
this.toolBarJustRight = new System.Windows.Forms.ToolBarButton();
this.toolBarIndent = new System.Windows.Forms.ToolBarButton();
this.toolBarOutdent = new System.Windows.Forms.ToolBarButton();
this.toolBarEditSep4 = new System.Windows.Forms.ToolBarButton();
this.toolBarListOrdered = new System.Windows.Forms.ToolBarButton();
this.toolBarListUnordered = new System.Windows.Forms.ToolBarButton();
this.toolBarEditSep5 = new System.Windows.Forms.ToolBarButton();
this.toolBarInsertLine = new System.Windows.Forms.ToolBarButton();
this.toolBarInsertTable = new System.Windows.Forms.ToolBarButton();
this.toolBarInsertImage = new System.Windows.Forms.ToolBarButton();
this.toolBarInsertLink = new System.Windows.Forms.ToolBarButton();
this.toolBarEditSep6 = new System.Windows.Forms.ToolBarButton();
this.toolBarFindReplace = new System.Windows.Forms.ToolBarButton();
this.toolBarPrint = new System.Windows.Forms.ToolBarButton();
this.toolbarImageList = new System.Windows.Forms.ImageList(this.components);
this.contextMenuMain = new System.Windows.Forms.ContextMenu();
this.menuTableModify = new System.Windows.Forms.MenuItem();
this.menuTableProperties = new System.Windows.Forms.MenuItem();
this.menuTableInsertRow = new System.Windows.Forms.MenuItem();
this.menuTableDeleteRow = new System.Windows.Forms.MenuItem();
this.menuText = new System.Windows.Forms.MenuItem();
this.menuTextUndo = new System.Windows.Forms.MenuItem();
this.menuTextRedo = new System.Windows.Forms.MenuItem();
this.menuTextSep1 = new System.Windows.Forms.MenuItem();
this.menuTextCut = new System.Windows.Forms.MenuItem();
this.menuTextCopy = new System.Windows.Forms.MenuItem();
this.menuTextPaste = new System.Windows.Forms.MenuItem();
this.menuTextSep2 = new System.Windows.Forms.MenuItem();
this.menuTextFindReplace = new System.Windows.Forms.MenuItem();
this.menuTextSep3 = new System.Windows.Forms.MenuItem();
this.menuTextSelectNone = new System.Windows.Forms.MenuItem();
this.menuTextSelectAll = new System.Windows.Forms.MenuItem();
this.menuTextDelete = new System.Windows.Forms.MenuItem();
this.menuDocument = new System.Windows.Forms.MenuItem();
this.menuDocumentOpen = new System.Windows.Forms.MenuItem();
this.menuDocumentSave = new System.Windows.Forms.MenuItem();
this.menuDocumentSep1 = new System.Windows.Forms.MenuItem();
this.menuDocumentPrint = new System.Windows.Forms.MenuItem();
this.menuDocumentSep2 = new System.Windows.Forms.MenuItem();
this.menuDocumentToolbar = new System.Windows.Forms.MenuItem();
this.menuDocumentScrollbar = new System.Windows.Forms.MenuItem();
this.menuDocumentWordwrap = new System.Windows.Forms.MenuItem();
this.menuDocumentOverwrite = new System.Windows.Forms.MenuItem();
this.menuMainSep1 = new System.Windows.Forms.MenuItem();
this.menuTextFont = new System.Windows.Forms.MenuItem();
this.menuTextFontDialog = new System.Windows.Forms.MenuItem();
this.menuTextFontColor = new System.Windows.Forms.MenuItem();
this.menuTextFontSep1 = new System.Windows.Forms.MenuItem();
this.menuTextFontNormal = new System.Windows.Forms.MenuItem();
this.menuTextFontBold = new System.Windows.Forms.MenuItem();
this.menuTextFontItalic = new System.Windows.Forms.MenuItem();
this.menuTextFontUnderline = new System.Windows.Forms.MenuItem();
this.menuTextFontSuperscript = new System.Windows.Forms.MenuItem();
this.menuTextFontSubscript = new System.Windows.Forms.MenuItem();
this.menuTextFontStrikeout = new System.Windows.Forms.MenuItem();
this.menuTextFontSep2 = new System.Windows.Forms.MenuItem();
this.menuTextFontIncrease = new System.Windows.Forms.MenuItem();
this.menuTextFontDecrease = new System.Windows.Forms.MenuItem();
this.menuTextFontIndent = new System.Windows.Forms.MenuItem();
this.menuTextFontOutdent = new System.Windows.Forms.MenuItem();
this.menuTextFontSep3 = new System.Windows.Forms.MenuItem();
this.menuTextFontListOrdered = new System.Windows.Forms.MenuItem();
this.menuTextFontListUnordered = new System.Windows.Forms.MenuItem();
this.menuJustify = new System.Windows.Forms.MenuItem();
this.menuJustifyLeft = new System.Windows.Forms.MenuItem();
this.menuJustifyCenter = new System.Windows.Forms.MenuItem();
this.menuJustifyRight = new System.Windows.Forms.MenuItem();
this.menuFormatting = new System.Windows.Forms.MenuItem();
this.menuMainSep2 = new System.Windows.Forms.MenuItem();
this.menuInsert = new System.Windows.Forms.MenuItem();
this.menuInsertLine = new System.Windows.Forms.MenuItem();
this.menuInsertLink = new System.Windows.Forms.MenuItem();
this.menuInsertImage = new System.Windows.Forms.MenuItem();
this.menuInsertText = new System.Windows.Forms.MenuItem();
this.menuInsertHtml = new System.Windows.Forms.MenuItem();
this.menuInsertTable = new System.Windows.Forms.MenuItem();
((System.ComponentModel.ISupportInitialize)(this.editorWebBrowser)).BeginInit();
this.SuspendLayout();
//
// editorWebBrowser
//
this.editorWebBrowser.AccessibleDescription = resources.GetString("editorWebBrowser.AccessibleDescription");
this.editorWebBrowser.AccessibleName = resources.GetString("editorWebBrowser.AccessibleName");
this.editorWebBrowser.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("editorWebBrowser.Anchor")));
this.editorWebBrowser.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("editorWebBrowser.BackgroundImage")));
this.editorWebBrowser.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("editorWebBrowser.Dock")));
this.editorWebBrowser.Enabled = ((bool)(resources.GetObject("editorWebBrowser.Enabled")));
this.editorWebBrowser.Font = ((System.Drawing.Font)(resources.GetObject("editorWebBrowser.Font")));
this.editorWebBrowser.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("editorWebBrowser.ImeMode")));
this.editorWebBrowser.Location = ((System.Drawing.Point)(resources.GetObject("editorWebBrowser.Location")));
this.editorWebBrowser.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("editorWebBrowser.OcxState")));
this.editorWebBrowser.RightToLeft = ((bool)(resources.GetObject("editorWebBrowser.RightToLeft")));
this.editorWebBrowser.Size = ((System.Drawing.Size)(resources.GetObject("editorWebBrowser.Size")));
this.editorWebBrowser.TabIndex = ((int)(resources.GetObject("editorWebBrowser.TabIndex")));
this.editorWebBrowser.Text = resources.GetString("editorWebBrowser.Text");
this.editorWebBrowser.Visible = ((bool)(resources.GetObject("editorWebBrowser.Visible")));
this.editorWebBrowser.DocumentComplete += new AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEventHandler(this.BrowserDocumentComplete);
this.editorWebBrowser.BeforeNavigate2 += new AxSHDocVw.DWebBrowserEvents2_BeforeNavigate2EventHandler(this.BrowserBeforeNavigate);
//
// editorToolbar
//
this.editorToolbar.AccessibleDescription = resources.GetString("editorToolbar.AccessibleDescription");
this.editorToolbar.AccessibleName = resources.GetString("editorToolbar.AccessibleName");
this.editorToolbar.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("editorToolbar.Anchor")));
this.editorToolbar.Appearance = ((System.Windows.Forms.ToolBarAppearance)(resources.GetObject("editorToolbar.Appearance")));
this.editorToolbar.AutoSize = ((bool)(resources.GetObject("editorToolbar.AutoSize")));
this.editorToolbar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("editorToolbar.BackgroundImage")));
this.editorToolbar.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.editorToolbar.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
this.toolBarCut,
this.toolBarCopy,
this.toolBarPaste,
this.toolBarEditSep1,
this.toolBarUndo,
this.toolBarRedo,
this.toolBarEditSep2,
this.toolBarBold,
this.toolBarUnderline,
this.toolBarItalic,
this.toolBarFont,
this.toolBarNormal,
this.toolBarColor,
this.toolBarFontUp,
this.toolBarFontDown,
this.toolBarEditSep3,
this.toolBarJustLeft,
this.toolBarJustCenter,
this.toolBarJustRight,
this.toolBarIndent,
this.toolBarOutdent,
this.toolBarEditSep4,
this.toolBarListOrdered,
this.toolBarListUnordered,
this.toolBarEditSep5,
this.toolBarInsertLine,
this.toolBarInsertTable,
this.toolBarInsertImage,
this.toolBarInsertLink,
this.toolBarEditSep6,
this.toolBarFindReplace,
this.toolBarPrint});
this.editorToolbar.ButtonSize = ((System.Drawing.Size)(resources.GetObject("editorToolbar.ButtonSize")));
this.editorToolbar.Divider = false;
this.editorToolbar.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("editorToolbar.Dock")));
this.editorToolbar.DropDownArrows = ((bool)(resources.GetObject("editorToolbar.DropDownArrows")));
this.editorToolbar.Enabled = ((bool)(resources.GetObject("editorToolbar.Enabled")));
this.editorToolbar.Font = ((System.Drawing.Font)(resources.GetObject("editorToolbar.Font")));
this.editorToolbar.ImageList = this.toolbarImageList;
this.editorToolbar.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("editorToolbar.ImeMode")));
this.editorToolbar.Location = ((System.Drawing.Point)(resources.GetObject("editorToolbar.Location")));
this.editorToolbar.Name = "editorToolbar";
this.editorToolbar.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("editorToolbar.RightToLeft")));
this.editorToolbar.ShowToolTips = ((bool)(resources.GetObject("editorToolbar.ShowToolTips")));
this.editorToolbar.Size = ((System.Drawing.Size)(resources.GetObject("editorToolbar.Size")));
this.editorToolbar.TabIndex = ((int)(resources.GetObject("editorToolbar.TabIndex")));
this.editorToolbar.TextAlign = ((System.Windows.Forms.ToolBarTextAlign)(resources.GetObject("editorToolbar.TextAlign")));
this.editorToolbar.Visible = ((bool)(resources.GetObject("editorToolbar.Visible")));
this.editorToolbar.Wrappable = ((bool)(resources.GetObject("editorToolbar.Wrappable")));
this.editorToolbar.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.editorToolbar_ButtonClick);
//
// toolBarCut
//
this.toolBarCut.Enabled = ((bool)(resources.GetObject("toolBarCut.Enabled")));
this.toolBarCut.ImageIndex = ((int)(resources.GetObject("toolBarCut.ImageIndex")));
this.toolBarCut.Tag = "TextCut";
this.toolBarCut.Text = resources.GetString("toolBarCut.Text");
this.toolBarCut.ToolTipText = resources.GetString("toolBarCut.ToolTipText");
this.toolBarCut.Visible = ((bool)(resources.GetObject("toolBarCut.Visible")));
//
// toolBarCopy
//
this.toolBarCopy.Enabled = ((bool)(resources.GetObject("toolBarCopy.Enabled")));
this.toolBarCopy.ImageIndex = ((int)(resources.GetObject("toolBarCopy.ImageIndex")));
this.toolBarCopy.Tag = "TextCopy";
this.toolBarCopy.Text = resources.GetString("toolBarCopy.Text");
this.toolBarCopy.ToolTipText = resources.GetString("toolBarCopy.ToolTipText");
this.toolBarCopy.Visible = ((bool)(resources.GetObject("toolBarCopy.Visible")));
//
// toolBarPaste
//
this.toolBarPaste.Enabled = ((bool)(resources.GetObject("toolBarPaste.Enabled")));
this.toolBarPaste.ImageIndex = ((int)(resources.GetObject("toolBarPaste.ImageIndex")));
this.toolBarPaste.Tag = "TextPaste";
this.toolBarPaste.Text = resources.GetString("toolBarPaste.Text");
this.toolBarPaste.ToolTipText = resources.GetString("toolBarPaste.ToolTipText");
this.toolBarPaste.Visible = ((bool)(resources.GetObject("toolBarPaste.Visible")));
//
// toolBarEditSep1
//
this.toolBarEditSep1.Enabled = ((bool)(resources.GetObject("toolBarEditSep1.Enabled")));
this.toolBarEditSep1.ImageIndex = ((int)(resources.GetObject("toolBarEditSep1.ImageIndex")));
this.toolBarEditSep1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
this.toolBarEditSep1.Text = resources.GetString("toolBarEditSep1.Text");
this.toolBarEditSep1.ToolTipText = resources.GetString("toolBarEditSep1.ToolTipText");
this.toolBarEditSep1.Visible = ((bool)(resources.GetObject("toolBarEditSep1.Visible")));
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?