protected override void AppendSerialization(FluentAlertTextBlock source, StringBuilder sb)
        {
            dynamic text = source.Text.ToString().Replace(Environment.NewLine, "<BR>");
            switch (source.Style)
            {
                case TextStyle.Header1:
                    sb.AppendFormat("<span style=\"{1};font-size:11pt;font-weight:bold;\">{0}</span><BR>", text, FONT_FAMILY);

                    break;
                case TextStyle.Normal:
                    sb.AppendFormat("<span style=\"{1};font-size:9pt;\">{0}</span><BR>", text, FONT_FAMILY);

                    break;
                case TextStyle.Bold:
                    sb.AppendFormat("<span style=\"{1};font-size:9pt;font-weight:bold;\">{0}</span><BR>", text, FONT_FAMILY);

                    break;
            }
        }
Ejemplo n.º 2
0
 protected abstract void AppendSerialization(FluentAlertTextBlock source, StringBuilder sb);
 protected override void AppendSerialization(FluentAlertTextBlock source, StringBuilder sb)
 {
     sb.AppendLine(source.Text.ToString());
 }