📄 formrichtextbox.designer.cs
字号:
namespace RichTextBoxExample
{
partial class FormRichTextBox
{
/// <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.buttonDisplay = new System.Windows.Forms.Button();
this.buttonOpenFile = new System.Windows.Forms.Button();
this.buttonSaveFile = new System.Windows.Forms.Button();
this.buttonProtected = new System.Windows.Forms.Button();
this.buttonFind = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.labelResult = new System.Windows.Forms.Label();
this.textBoxProtected = new System.Windows.Forms.TextBox();
this.textBoxFind2 = new System.Windows.Forms.TextBox();
this.textBoxFind1 = new System.Windows.Forms.TextBox();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.SuspendLayout();
//
// buttonDisplay
//
this.buttonDisplay.Location = new System.Drawing.Point(472, 30);
this.buttonDisplay.Name = "buttonDisplay";
this.buttonDisplay.Size = new System.Drawing.Size(93, 28);
this.buttonDisplay.TabIndex = 0;
this.buttonDisplay.Text = "程序说明";
this.buttonDisplay.UseVisualStyleBackColor = true;
this.buttonDisplay.Click += new System.EventHandler(this.buttonDisplay_Click);
//
// buttonOpenFile
//
this.buttonOpenFile.Location = new System.Drawing.Point(472, 126);
this.buttonOpenFile.Name = "buttonOpenFile";
this.buttonOpenFile.Size = new System.Drawing.Size(93, 28);
this.buttonOpenFile.TabIndex = 1;
this.buttonOpenFile.Text = "读入RTF文件";
this.buttonOpenFile.UseVisualStyleBackColor = true;
this.buttonOpenFile.Click += new System.EventHandler(this.buttonOpenFile_Click);
//
// buttonSaveFile
//
this.buttonSaveFile.Location = new System.Drawing.Point(472, 224);
this.buttonSaveFile.Name = "buttonSaveFile";
this.buttonSaveFile.Size = new System.Drawing.Size(93, 28);
this.buttonSaveFile.TabIndex = 2;
this.buttonSaveFile.Text = "保存RTF文件";
this.buttonSaveFile.UseVisualStyleBackColor = true;
this.buttonSaveFile.Click += new System.EventHandler(this.buttonSaveFile_Click);
//
// buttonProtected
//
this.buttonProtected.Location = new System.Drawing.Point(472, 295);
this.buttonProtected.Name = "buttonProtected";
this.buttonProtected.Size = new System.Drawing.Size(93, 28);
this.buttonProtected.TabIndex = 3;
this.buttonProtected.Text = "设为只读";
this.buttonProtected.UseVisualStyleBackColor = true;
this.buttonProtected.Click += new System.EventHandler(this.buttonProtected_Click);
//
// buttonFind
//
this.buttonFind.Location = new System.Drawing.Point(472, 347);
this.buttonFind.Name = "buttonFind";
this.buttonFind.Size = new System.Drawing.Size(93, 28);
this.buttonFind.TabIndex = 4;
this.buttonFind.Text = "查找下一处";
this.buttonFind.UseVisualStyleBackColor = true;
this.buttonFind.Click += new System.EventHandler(this.buttonFind_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(16, 300);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(137, 12);
this.label1.TabIndex = 5;
this.label1.Text = "锁定文本中出现的第一个";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(324, 303);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(41, 12);
this.label2.TabIndex = 6;
this.label2.Text = "字符串";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(12, 361);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(65, 12);
this.label3.TabIndex = 7;
this.label3.Text = "将文本中的";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(199, 355);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(41, 12);
this.label4.TabIndex = 8;
this.label4.Text = "替换为";
//
// labelResult
//
this.labelResult.AutoSize = true;
this.labelResult.Location = new System.Drawing.Point(199, 429);
this.labelResult.Name = "labelResult";
this.labelResult.Size = new System.Drawing.Size(113, 12);
this.labelResult.TabIndex = 9;
this.labelResult.Text = "在这里显示替换状态";
this.labelResult.Visible = false;
//
// textBoxProtected
//
this.textBoxProtected.Location = new System.Drawing.Point(159, 300);
this.textBoxProtected.Name = "textBoxProtected";
this.textBoxProtected.Size = new System.Drawing.Size(159, 21);
this.textBoxProtected.TabIndex = 10;
//
// textBoxFind2
//
this.textBoxFind2.Location = new System.Drawing.Point(258, 352);
this.textBoxFind2.Name = "textBoxFind2";
this.textBoxFind2.Size = new System.Drawing.Size(107, 21);
this.textBoxFind2.TabIndex = 11;
//
// textBoxFind1
//
this.textBoxFind1.Location = new System.Drawing.Point(83, 352);
this.textBoxFind1.Name = "textBoxFind1";
this.textBoxFind1.Size = new System.Drawing.Size(110, 21);
this.textBoxFind1.TabIndex = 12;
//
// richTextBox1
//
this.richTextBox1.Location = new System.Drawing.Point(31, 12);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(425, 281);
this.richTextBox1.TabIndex = 13;
this.richTextBox1.Text = "";
//
// FormRichTextBox
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(592, 516);
this.Controls.Add(this.richTextBox1);
this.Controls.Add(this.textBoxFind1);
this.Controls.Add(this.textBoxFind2);
this.Controls.Add(this.textBoxProtected);
this.Controls.Add(this.labelResult);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.buttonFind);
this.Controls.Add(this.buttonProtected);
this.Controls.Add(this.buttonSaveFile);
this.Controls.Add(this.buttonOpenFile);
this.Controls.Add(this.buttonDisplay);
this.Name = "FormRichTextBox";
this.Text = "RTF文件操作";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button buttonDisplay;
private System.Windows.Forms.Button buttonOpenFile;
private System.Windows.Forms.Button buttonSaveFile;
private System.Windows.Forms.Button buttonProtected;
private System.Windows.Forms.Button buttonFind;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label labelResult;
private System.Windows.Forms.TextBox textBoxProtected;
private System.Windows.Forms.TextBox textBoxFind2;
private System.Windows.Forms.TextBox textBoxFind1;
private System.Windows.Forms.RichTextBox richTextBox1;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -