public void WrapBody(HtmlTag tag)
 {
     tag.ReplaceChildren(new HtmlTag[1]
                             {
                                 BodyTag
                             });
     _bodyHolder.ReplaceChildren(new HtmlTag[1]
                                     {
                                         tag
                                     });
     _bodyHolder = tag;
 }
Example #2
0
 public static HtmlTag HtmlTag(params HtmlTag[] bodyTags)
 {
     var body = new HtmlTag(HtmlTagConstants.Body);
     body.ReplaceChildren(bodyTags);
     return new HtmlTag(HtmlTagConstants.Html).Child(body);
 }
 public void WrapBody(HtmlTag tag)
 {
     tag.ReplaceChildren(BodyTag);
     _bodyHolder.ReplaceChildren(tag);
     _bodyHolder = tag;
 }