Ejemplo n.º 1
0
        /// <summary>
        /// Gets the style.
        /// </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 HtmlStyle GetStyle(XmlNode parentNode)
        {
            HtmlStyle style = new HtmlStyle();
            XmlNode styleNode = parentNode.SelectSingleNode("Style");
            if (styleNode != null)
            {
                XmlNode alignNode = styleNode.SelectSingleNode("Align");
                if (alignNode != null)
                {
                    style.Align = alignNode.InnerText;
                }

                XmlNode fontSizeNode = styleNode.SelectSingleNode("FontSize");
                if (fontSizeNode != null)
                {
                    style.FontSize = fontSizeNode.InnerText;

                }

                XmlNode colorNode = styleNode.SelectSingleNode("Color");
                if (colorNode != null)
                {
                    style.Color = colorNode.InnerText;
                }
            }
            return style;
        }
Ejemplo n.º 2
0
 public HtmlCaption()
 {
     Title = string.Empty;
     Style = new HtmlStyle();
 }
Ejemplo n.º 3
0
 public HtmlHeader()
 {
     HeaderText = string.Empty;
     HeaderValue = string.Empty;
     Style = new HtmlStyle();
 }