//// 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); }
// 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); }