void _host_ReadyStateComplete(object sender, EventArgs e) { if (_host.DesignModeEnabled) { body2 = ((Interop.IHTMLElement2)_host.GetBodyElement().GetBaseElement()); } }
private void FillNodes() { IElement body = _editor.GetBodyElement(); treeViewOutline.Nodes.Clear(); TreeNode rootNode = treeViewOutline.Nodes.Add("DOCUMENT ROOT"); RetrieveChildren(body, rootNode); treeViewOutline.ExpandAll(); }