Exemplo n.º 1
0
        /// <summary>
        /// Set the properties of the style attribute of the given element in the style declaration
        /// </summary>
        private void SetStyleProperties(CssStyleDeclaration styleDeclaration, XElement element)
        {
            var styleAttr = element.Attributes().FirstOrDefault(x => x.Name == "style");

            if (styleAttr != null)
            {
                styleDeclaration.Parse(styleAttr.Value);
            }
        }