public static string showFilteredHtmlContentInTreeView(this string htmlCode, string filter, TreeView htmlTags_TreeView, TextBox htmlNodeFilter) { htmlTags_TreeView.clear(); try { ">showing htmlcode with size: {0}".info(htmlCode.size()); htmlNodeFilter.backColor(Color.White); var htmlDocument = htmlCode.htmlDocument(); if (filter.valid()) htmlTags_TreeView.add_Nodes(htmlDocument.select(filter)); else { htmlTags_TreeView.add_Node(htmlDocument); htmlTags_TreeView.expand(); } "HtmlTags_TreeView nodes: {0}".info(htmlTags_TreeView.nodes().size()); } catch(System.Exception ex) { ex.log("in htmlNodeFilter.onEnter"); htmlNodeFilter.backColor(Color.Red); } htmlTags_TreeView.applyPathFor_1NodeMissingNodeBug(); return htmlCode; }