本文整理匯總了C#中System.Windows.Forms.TreeView.insert_Left方法的典型用法代碼示例。如果您正苦於以下問題:C# TreeView.insert_Left方法的具體用法?C# TreeView.insert_Left怎麽用?C# TreeView.insert_Left使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Windows.Forms.TreeView
的用法示例。
在下文中一共展示了TreeView.insert_Left方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: buildGui
public ascx_HtmlTagViewer buildGui(bool addLoadUrlTextBox, bool addHtmlCodeViewer)
{
//return (ascx_HtmlTagViewer)this.invokeOnThread(
// ()=>{
var TopPanel = this.add_Panel();
HtmlTags_TreeView = TopPanel.add_TreeView_for_HtmlTags()
.showSelection();
if (addHtmlCodeViewer)
{
HtmlCodeViewer = HtmlTags_TreeView.insert_Left<Panel>(TopPanel.width()/2).add_SourceCodeViewer();
HtmlTags_TreeView.after_TagSelect_showIn_SouceCodeViewer(HtmlCodeViewer);
var optionsPanel = HtmlCodeViewer.insert_Below<Panel>(50);
optionsPanel.add_CheckBox("View as Xml",0,5,
(value)=>{
ViewAsXml = value;
reloadPage();
})
.append_Label("Search html code:")
.top(5)
.append_TextBox("")
.onTextChange((text)=> HtmlCodeViewer.editor().invoke("searchForTextInTextEditor_findNext",text))
.onEnter((text)=> HtmlCodeViewer.editor().invoke("searchForTextInTextEditor_findNext",text))
.align_Right(optionsPanel);
optionsPanel.add_Link("Refresh tags",30,0,()=> show(HtmlCodeViewer.get_Text()));
}
if (addLoadUrlTextBox)
{
PageToOpen = TopPanel.insert_Above<Panel>(20).add_TextBox().fill();
var propertyGrid = HtmlTags_TreeView.insert_Right<Panel>(150).add_PropertyGrid();
HtmlTags_TreeView.afterSelect<HtmlAgilityPack.HtmlNode>(
(htmlNode)=> propertyGrid.show(htmlNode));
PageToOpen.onEnter(
(text)=>{
if (text.fileExists())
show(text.fileContents());
else
show(text.uri());
});
}
HtmlNodeFilter = HtmlTags_TreeView.insert_Below_HtmlTagFilter((filter) => show(HtmlCode, filter) );
return this;
//});
}