本文整理汇总了C#中System.Windows.Forms.Document.set_ReadOnly方法的典型用法代码示例。如果您正苦于以下问题:C# Document.set_ReadOnly方法的具体用法?C# Document.set_ReadOnly怎么用?C# Document.set_ReadOnly使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.Document
的用法示例。
在下文中一共展示了Document.set_ReadOnly方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InitializeComponent
private void InitializeComponent()
{
Document document = new Document();
Document document2 = new Document();
this.customEditor = new ActiproSoftware.SyntaxEditor.SyntaxEditor();
this.panBottom = new Panel();
this.chkTopMost = new CheckBox();
this.btnApply = new Button();
this.baseEditor = new ActiproSoftware.SyntaxEditor.SyntaxEditor();
this.splitContainer = new SplitContainer();
this.label2 = new Label();
this.label1 = new Label();
this.panBottom.SuspendLayout();
this.splitContainer.Panel1.SuspendLayout();
this.splitContainer.Panel2.SuspendLayout();
this.splitContainer.SuspendLayout();
base.SuspendLayout();
this.customEditor.set_BracketHighlightingVisible(true);
this.customEditor.Dock = DockStyle.Fill;
this.customEditor.set_Document(document);
this.customEditor.set_IndicatorMarginVisible(false);
this.customEditor.Location = new Point(0, 0x15);
this.customEditor.Name = "customEditor";
this.customEditor.set_ScrollBarType(3);
this.customEditor.Size = new Size(0x1b1, 240);
this.customEditor.set_SplitType(0);
this.customEditor.TabIndex = 0;
this.customEditor.TextChanged += new EventHandler(this.customEditor_TextChanged);
this.panBottom.Controls.Add(this.chkTopMost);
this.panBottom.Controls.Add(this.btnApply);
this.panBottom.Dock = DockStyle.Bottom;
this.panBottom.Location = new Point(5, 0x27a);
this.panBottom.Name = "panBottom";
this.panBottom.Padding = new Padding(0, 6, 0, 0);
this.panBottom.Size = new Size(0x1b1, 0x23);
this.panBottom.TabIndex = 1;
this.chkTopMost.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
this.chkTopMost.AutoSize = true;
this.chkTopMost.Checked = true;
this.chkTopMost.CheckState = CheckState.Checked;
this.chkTopMost.Location = new Point(1, 11);
this.chkTopMost.Name = "chkTopMost";
this.chkTopMost.Size = new Size(0x9f, 0x17);
this.chkTopMost.TabIndex = 3;
this.chkTopMost.Text = "Keep Window on Top";
this.chkTopMost.UseVisualStyleBackColor = true;
this.chkTopMost.CheckedChanged += new EventHandler(this.chkTopMost_CheckedChanged);
this.btnApply.Dock = DockStyle.Right;
this.btnApply.Location = new Point(0x13d, 6);
this.btnApply.Name = "btnApply";
this.btnApply.Size = new Size(0x74, 0x1d);
this.btnApply.TabIndex = 0;
this.btnApply.Text = "&Apply Changes";
this.btnApply.UseVisualStyleBackColor = true;
this.btnApply.Click += new EventHandler(this.btnApply_Click);
this.baseEditor.set_BracketHighlightingVisible(true);
this.baseEditor.Dock = DockStyle.Fill;
document2.set_ReadOnly(true);
this.baseEditor.set_Document(document2);
this.baseEditor.set_IndicatorMarginVisible(false);
this.baseEditor.Location = new Point(0, 0x15);
this.baseEditor.Name = "baseEditor";
this.baseEditor.set_ScrollBarType(3);
this.baseEditor.Size = new Size(0x1b1, 340);
this.baseEditor.set_SplitType(0);
this.baseEditor.TabIndex = 2;
this.baseEditor.set_UseDisabledRenderingForReadOnlyMode(true);
this.splitContainer.Dock = DockStyle.Fill;
this.splitContainer.Location = new Point(5, 6);
this.splitContainer.Name = "splitContainer";
this.splitContainer.Orientation = Orientation.Horizontal;
this.splitContainer.Panel1.Controls.Add(this.baseEditor);
this.splitContainer.Panel1.Controls.Add(this.label2);
this.splitContainer.Panel2.Controls.Add(this.customEditor);
this.splitContainer.Panel2.Controls.Add(this.label1);
this.splitContainer.Size = new Size(0x1b1, 0x274);
this.splitContainer.SplitterDistance = 0x169;
this.splitContainer.SplitterWidth = 6;
this.splitContainer.TabIndex = 0;
this.label2.AutoSize = true;
this.label2.Dock = DockStyle.Top;
this.label2.Location = new Point(0, 0);
this.label2.Margin = new Padding(0, 0, 3, 0);
this.label2.Name = "label2";
this.label2.Padding = new Padding(0, 0, 0, 2);
this.label2.Size = new Size(0x4c, 0x15);
this.label2.TabIndex = 3;
this.label2.Text = "Base Styles";
this.label1.AutoSize = true;
this.label1.Dock = DockStyle.Top;
this.label1.Location = new Point(0, 0);
this.label1.Margin = new Padding(0, 0, 3, 0);
this.label1.Name = "label1";
this.label1.Padding = new Padding(0, 0, 0, 2);
this.label1.Size = new Size(0x67, 0x15);
this.label1.TabIndex = 1;
this.label1.Text = "Customizations";
base.AutoScaleDimensions = new SizeF(7f, 17f);
base.AutoScaleMode = AutoScaleMode.Font;
base.ClientSize = new Size(0x1bb, 0x2a2);
//.........这里部分代码省略.........