示例#1
0
        Italic ParseItalic(HtmlNode node, Style style)
        {
            var italic = new Italic();

            italic.ApplyStyle(style);
            var italicStyle = new Style(style)
            {
                FontStyle = FontStyle.Italic
            };

            foreach (var child in node.ChildNodes)
            {
                italic.Inlines.SafeAdd(ParseNode(child, italicStyle));
            }

            return(italic);
        }