Exemplo n.º 1
0
        /// <summary>
        /// Gets the header.
        /// </summary>
        /// <param name="parentNode">The parent node.</param>
        /// <returns></returns>
        /// <Remarks>
        /// Created Time: 2008-7-17 15:56
        /// Created By: jack_que
        /// Last Modified Time:  
        /// Last Modified By: 
        /// </Remarks>
        private HtmlHeader GetHeader(XmlNode parentNode)
        {
            HtmlHeader header = new HtmlHeader();
            XmlNode headerNode = parentNode.SelectSingleNode("Header");
            if (headerNode != null)
            {
                XmlNode headerTextNode = headerNode.SelectSingleNode("HeaderText");
                if (headerTextNode != null)
                {
                    header.HeaderText = headerTextNode.InnerText;
                }

                XmlNode headerValueNode = headerNode.SelectSingleNode("HeaderValue");
                if (headerValueNode != null)
                {
                    header.HeaderValue = headerValueNode.InnerText;
                }

                header.Style = this.GetStyle(headerNode);
            }
            return header;
        }
Exemplo n.º 2
0
 public HtmlRow()
 {
     RowSpan = 1;
     Header = new HtmlHeader();
     ChildRows = new List<HtmlRow>();
 }
Exemplo n.º 3
0
 public HtmlColumn()
 {
     DataType = "string";
     RowSpan = 1;
     Header = new HtmlHeader();
     ChildColumns = new List<HtmlColumn>();
     IsLeaf = false;
 }