Beispiel #1
0
        internal void UpdateTextContent()
        {
            var content = templateContent;

            content = content.Replace("{foreground}", HtmlForeground.ToHtml());
            content = content.Replace("{link_foreground}", LinkForeground.ToHtml());
            content = content.Replace("{font_family}", HtmlFontFamily.ToString());
            content = content.Replace("{font_size}", HtmlFontSize.ToString());
            Text    = content.Replace("{text}", HtmlText?.ToString());
        }
Beispiel #2
0
        internal void UpdateTextContent()
        {
            var content = string.Empty;

            if (!templateContent.IsNullOrEmpty())
            {
                content = templateContent;
            }
            else if (HtmlText?.Contains("<html>") != true)
            {
                content = defaultTemplate;
            }

            content = content.Replace("{foreground}", HtmlForeground.ToHtml());
            content = content.Replace("{link_foreground}", LinkForeground.ToHtml());
            content = content.Replace("{font_family}", HtmlFontFamily.ToString());
            content = content.Replace("{font_size}", HtmlFontSize.ToString());
            Text    = content.Replace("{text}", HtmlText?.ToString());
        }