本文整理汇总了C#中FastColoredTextBox.BringToFront方法的典型用法代码示例。如果您正苦于以下问题:C# FastColoredTextBox.BringToFront方法的具体用法?C# FastColoredTextBox.BringToFront怎么用?C# FastColoredTextBox.BringToFront使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FastColoredTextBox
的用法示例。
在下文中一共展示了FastColoredTextBox.BringToFront方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: createNewContainet
private TabPage createNewContainet(string name, string fullPath = null, bool saved = false)
{
//create new tab
TabPage newPage = new TabPage(name);
tabContainer.TabPages.Add(newPage);
SplitContainer container = new SplitContainer();
container.Orientation = Orientation.Horizontal;
container.Dock = DockStyle.Fill;
newPage.Controls.Add(container);
//create output console
OutputConsole console = new OutputConsole();
console.Name = "outputConsole";
console.Dock = DockStyle.Fill;
container.Panel2.Controls.Add(console);
container.Panel2Collapsed = true;
//create new editor
var newEditor = new FastColoredTextBox();
newEditor.Name = "mainEditor";
newEditor.DelayedTextChangedInterval = 1000;
newEditor.DelayedEventsInterval = 500;
newEditor.Language = FastColoredTextBoxNS.Language.wQL;
newEditor.TextChangedDelayed += new EventHandler<TextChangedEventArgs>(editor_TextChangedDelayed);
newEditor.TextChanged += new EventHandler<TextChangedEventArgs>(editor_TextChanged);
newEditor.SelectionChangedDelayed += new EventHandler(editor_SelectionChangedDelayed);
newEditor.ToolTipNeeded += NewEditor_ToolTipNeeded;
newEditor.Name = ProjectConstants.EditorControlName;
container.Panel1.Controls.Add(newEditor);
//newPage.Controls.Add(newEditor);
newEditor.CurrentLineColor = highlightCurrentLineToolStripMenuItem.Checked ? currentLineColor : Color.Transparent;
newEditor.HighlightingRangeType = HighlightingRangeType.VisibleRange;
newEditor.AddStyle(sameWordsStyle);//same words style
newEditor.Dock = DockStyle.Fill;
AutocompleteMenu popupMenu = new AutocompleteMenu(newEditor);
//popupMenu.Items.ImageList = ilAutocomplete;
popupMenu.Opening += new EventHandler<CancelEventArgs>(popupMenu_Opening);
BuildAutocompleteMenu(popupMenu);
newEditor.Tag= popupMenu;
tabContainer.SelectedTab = newPage;
//create the details for the file
var details = new FileDetails()
{
FileName = name,
FullPath = fullPath,
Saved = saved
};
newPage.Tag = details;
updateTab(newPage);
newEditor.BringToFront();
newEditor.Focus();
return newPage;
}