本文整理汇总了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);
}
示例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);
}
}
示例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!");
}
}
示例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);
}
示例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
}