当前位置: 首页>>代码示例>>C#>>正文


C# Editor.Show方法代码示例

本文整理汇总了C#中Editor.Show方法的典型用法代码示例。如果您正苦于以下问题:C# Editor.Show方法的具体用法?C# Editor.Show怎么用?C# Editor.Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Editor的用法示例。


在下文中一共展示了Editor.Show方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: menuItem4_Click

 private void menuItem4_Click(object sender, EventArgs e)
 {
     var splitedit = new Editor {Name = ActiveEditor.Name, Text = "[Split] " + ActiveEditor.Text};
     splitedit.Tb.SourceTextBox = ActiveEditor.Tb;
     splitedit.Tb.ReadOnly = true;
     ActiveEditor.Tb.VisibleRangeChangedDelayed +=
         (o, args) =>
             UpdateScroll(splitedit.Tb, ActiveEditor.Tb.VerticalScroll.Value,
                 ActiveEditor.Tb.Selection.Start.iLine);
     splitedit.Show(ActiveEditor.Pane, DockAlignment.Right, 0.5);
 }
开发者ID:samarjeet27,项目名称:ynoteclassic,代码行数:11,代码来源:MainForm.cs

示例2: fromrtf_Click

 private void fromrtf_Click(object sender, EventArgs e)
 {
     using (var o = new OpenFileDialog {Filter = "RTF Files (*.rtf)|*.rtf"})
     {
         o.ShowDialog();
         if (o.FileName == "") return;
         var edit = new Editor();
         edit.Tb.Text = ConvertToText(File.ReadAllText(o.FileName));
         edit.Name = o.FileName;
         edit.Text = Path.GetFileName(o.FileName);
         edit.Show(dock, DockState.Document);
     }
 }
开发者ID:samarjeet27,项目名称:ynoteclassic,代码行数:13,代码来源:MainForm.cs

示例3: minewview_Click

 private void minewview_Click(object sender, EventArgs e)
 {
     if (ActiveEditor.IsSaved)
     {
         var edit = new Editor();
         edit.Text = ActiveEditor.Text;
         edit.Name = ActiveEditor.Name;
         edit.Tb.SourceTextBox = ActiveEditor.Tb;
         edit.Show(dock);
     }
     else
     {
         MessageBox.Show("File Not Saved!");
     }
 }
开发者ID:samarjeet27,项目名称:ynoteclassic,代码行数:15,代码来源:MainForm.cs

示例4: misplitbeside_Click

 private void misplitbeside_Click(object sender, EventArgs e)
 {
     var splitedit = new Editor {Name = ActiveEditor.Name, Text = "[Split] " + ActiveEditor.Text};
     splitedit.Tb.SourceTextBox = ActiveEditor.Tb;
     splitedit.Tb.ReadOnly = true;
     splitedit.Show(ActiveEditor.Pane, DockAlignment.Right, 0.5);
 }
开发者ID:samarjeet27,项目名称:ynoteclassic,代码行数:7,代码来源:MainForm.cs

示例5: CreateNewDoc

        /// <summary>
        ///  Create New Document
        /// </summary>
        public void CreateNewDoc()
        {
            #if DEBUG
            var watch = new Stopwatch();
            watch.Start();
            #endif
            var edit = new Editor();
            edit.Text = "untitled";
            edit.Show(Panel);

            #if DEBUG
            watch.Stop();
            Debug.WriteLine("CreateNewDoc()  - " + watch.ElapsedMilliseconds + " ms");
            #endif
        }
开发者ID:samarjeet27,项目名称:ynoteclassic,代码行数:18,代码来源:MainForm.cs


注:本文中的Editor.Show方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。