void _host_ReadyStateComplete(object sender, EventArgs e)
 {
     if (_host.DesignModeEnabled)
     {
         body2 = ((Interop.IHTMLElement2)_host.GetBodyElement().GetBaseElement());
     }
 }
Exemple #2
0
        private void FillNodes()
        {
            IElement body = _editor.GetBodyElement();

            treeViewOutline.Nodes.Clear();
            TreeNode rootNode = treeViewOutline.Nodes.Add("DOCUMENT ROOT");

            RetrieveChildren(body, rootNode);
            treeViewOutline.ExpandAll();
        }