⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 contextmenustripform.designer.cs

📁 csharp课本的源代码
💻 CS
字号:
namespace ContextMenuStripExample
{
    partial class ContextMenuStripForm
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form 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();
            this.label1 = new System.Windows.Forms.Label();
            this.myContextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
            this.toolStripMenuItem大字体 = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem小字体 = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripMenuItem红色字体 = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem蓝色字体 = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem绿色字体 = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripMenuItem恢复字体大小 = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem恢复字体颜色 = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripMenuItem保存文件 = new System.Windows.Forms.ToolStripMenuItem();
            this.richTextBox1 = new System.Windows.Forms.RichTextBox();
            this.myContextMenuStrip.SuspendLayout();
            this.SuspendLayout();
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(64, 15);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(317, 12);
            this.label1.TabIndex = 0;
            this.label1.Text = "请在以下文本框中编辑文本,利用右键菜单修改文本的显示";
            // 
            // myContextMenuStrip
            // 
            this.myContextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.toolStripMenuItem大字体,
            this.toolStripMenuItem小字体,
            this.toolStripSeparator1,
            this.toolStripMenuItem红色字体,
            this.toolStripMenuItem蓝色字体,
            this.toolStripMenuItem绿色字体,
            this.toolStripSeparator2,
            this.toolStripMenuItem恢复字体大小,
            this.toolStripMenuItem恢复字体颜色,
            this.toolStripSeparator3,
            this.toolStripMenuItem保存文件});
            this.myContextMenuStrip.Name = "myContextMenuStrip";
            this.myContextMenuStrip.Size = new System.Drawing.Size(143, 198);
            // 
            // toolStripMenuItem大字体
            // 
            this.toolStripMenuItem大字体.Name = "toolStripMenuItem大字体";
            this.toolStripMenuItem大字体.Size = new System.Drawing.Size(174, 22);
            this.toolStripMenuItem大字体.Text = "大字体";
            this.toolStripMenuItem大字体.Click += new System.EventHandler(this.toolStripMenuItem大字体_Click);
            // 
            // toolStripMenuItem小字体
            // 
            this.toolStripMenuItem小字体.Name = "toolStripMenuItem小字体";
            this.toolStripMenuItem小字体.Size = new System.Drawing.Size(174, 22);
            this.toolStripMenuItem小字体.Text = "小字体";
            this.toolStripMenuItem小字体.Click += new System.EventHandler(this.toolStripMenuItem小字体_Click);
            // 
            // toolStripSeparator1
            // 
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(171, 6);
            // 
            // toolStripMenuItem红色字体
            // 
            this.toolStripMenuItem红色字体.Name = "toolStripMenuItem红色字体";
            this.toolStripMenuItem红色字体.Size = new System.Drawing.Size(174, 22);
            this.toolStripMenuItem红色字体.Text = "红色字体";
            this.toolStripMenuItem红色字体.Click += new System.EventHandler(this.toolStripMenuItem红色字体_Click);
            // 
            // toolStripMenuItem蓝色字体
            // 
            this.toolStripMenuItem蓝色字体.Name = "toolStripMenuItem蓝色字体";
            this.toolStripMenuItem蓝色字体.Size = new System.Drawing.Size(174, 22);
            this.toolStripMenuItem蓝色字体.Text = "蓝色字体";
            this.toolStripMenuItem蓝色字体.Click += new System.EventHandler(this.toolStripMenuItem蓝色字体_Click);
            // 
            // toolStripMenuItem绿色字体
            // 
            this.toolStripMenuItem绿色字体.Name = "toolStripMenuItem绿色字体";
            this.toolStripMenuItem绿色字体.Size = new System.Drawing.Size(174, 22);
            this.toolStripMenuItem绿色字体.Text = "绿色字体";
            this.toolStripMenuItem绿色字体.Click += new System.EventHandler(this.toolStripMenuItem绿色字体_Click);
            // 
            // toolStripSeparator2
            // 
            this.toolStripSeparator2.Name = "toolStripSeparator2";
            this.toolStripSeparator2.Size = new System.Drawing.Size(171, 6);
            // 
            // toolStripMenuItem恢复字体大小
            // 
            this.toolStripMenuItem恢复字体大小.Name = "toolStripMenuItem恢复字体大小";
            this.toolStripMenuItem恢复字体大小.Size = new System.Drawing.Size(174, 22);
            this.toolStripMenuItem恢复字体大小.Text = "恢复字体大小";
            this.toolStripMenuItem恢复字体大小.Click += new System.EventHandler(this.toolStripMenuItem恢复字体大小_Click);
            // 
            // toolStripMenuItem恢复字体颜色
            // 
            this.toolStripMenuItem恢复字体颜色.Name = "toolStripMenuItem恢复字体颜色";
            this.toolStripMenuItem恢复字体颜色.Size = new System.Drawing.Size(174, 22);
            this.toolStripMenuItem恢复字体颜色.Text = "恢复字体颜色";
            this.toolStripMenuItem恢复字体颜色.Click += new System.EventHandler(this.toolStripMenuItem恢复字体颜色_Click);
            // 
            // toolStripSeparator3
            // 
            this.toolStripSeparator3.Name = "toolStripSeparator3";
            this.toolStripSeparator3.Size = new System.Drawing.Size(171, 6);
            // 
            // toolStripMenuItem保存文件
            // 
            this.toolStripMenuItem保存文件.Name = "toolStripMenuItem保存文件";
            this.toolStripMenuItem保存文件.Size = new System.Drawing.Size(174, 22);
            this.toolStripMenuItem保存文件.Text = "保存文件";
            this.toolStripMenuItem保存文件.Click += new System.EventHandler(this.toolStripMenuItem保存文件_Click);
            // 
            // richTextBox1
            // 
            this.richTextBox1.ContextMenuStrip = this.myContextMenuStrip;
            this.richTextBox1.Location = new System.Drawing.Point(3, 29);
            this.richTextBox1.Name = "richTextBox1";
            this.richTextBox1.Size = new System.Drawing.Size(426, 230);
            this.richTextBox1.TabIndex = 2;
            this.richTextBox1.Text = "";
            // 
            // ContextMenuStripForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(433, 266);
            this.Controls.Add(this.richTextBox1);
            this.Controls.Add(this.label1);
            this.Name = "ContextMenuStripForm";
            this.Text = "RTF文件编辑器-快捷菜单";
            this.myContextMenuStrip.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.ContextMenuStrip myContextMenuStrip;
        private System.Windows.Forms.RichTextBox richTextBox1;
        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem大字体;
        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem小字体;
        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem红色字体;
        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem蓝色字体;
        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem绿色字体;
        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem恢复字体大小;
        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem恢复字体颜色;
        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem保存文件;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -