/// <summary>
        /// 初始化本类型
        /// </summary>
        /// <param name="version">枚举:Xhtml的版本</param>
        protected void InitializeComponent(Xhtml.Version version)
        {
            this.XhtmlVersion = version;

            XhtmlTags.Head eleHead = this.CreateXhtmlHead();
            this.Head = eleHead;
            XhtmlTags.Title eleTitle = this.CreateXhtmlTitle();
            this.Title = eleTitle;
            //this.Head.AppendChild(eleTitle);
            XhtmlTags.Body eleBody = this.CreateXhtmlBody();
            this.Body = eleBody;

            this.AppendChild(eleHead);
            this.AppendChild(eleBody);
        }
Beispiel #2
0
 public XhtmlTags.Title CreateXhtmlTitle(params XhtmlAttribute[] attributes)
 {
     XhtmlTags.Title xhtmltitle = new XhtmlTags.Title();
     xhtmltitle.InitializeComponent(this, "title", attributes);
     return(xhtmltitle);
 }