public static void ApplyInlineStyles(this TextWriter result, PrintElementInline element)
 {
     if (element.TextDecoration != null)
     {
         result.Write("text-decoration:");
         result.Write(GetTextDecoration(element.TextDecoration.Value));
         result.Write(";");
     }
 }
Пример #2
0
        public static void ApplyInlineStyles(Inline elementContent, PrintElementInline element)
        {
            if (element.TextDecoration != null)
            {
                elementContent.TextDecorations = GetTextDecoration(element.TextDecoration.Value);
            }

            if (elementContent.Typography.Variants == FontVariants.Subscript)
            {
                elementContent.BaselineAlignment = BaselineAlignment.Subscript;
            }

            if (elementContent.Typography.Variants == FontVariants.Superscript)
            {
                elementContent.BaselineAlignment = BaselineAlignment.Superscript;
            }
        }