Exemplo n.º 1
0
        //// append an element to the body of the document
        //public void AppendToBody(HtmlElement elementIn)
        //{
        //    body.Add(elementIn);
        //}

        // make a deep clone of the document
        public IDocument Clone()
        {
            PlainDocument clone = new PlainDocument();

            clone.SetTitle(title);
            clone.SetBody(body);
            clone.SetAuthor(author);

            return(clone);
        }
Exemplo n.º 2
0
        // make a deep clone of the document
        public IDocument Clone()
        {
            PlainDocument clone = new PlainDocument();

            clone.SetTitle(title);
            foreach (PlainElement elem in body)
            {
                clone.AppendToBody(elem.Clone());
            }

            return(clone);
        }