private void AppendUnderline(HtmlNode node, Paragraph paragraph, Span span)
{
Run run = new Run();
run.TextDecorations = TextDecorations.Underline;
if (run.FontStyle != this.FontStyle)
run.FontStyle = this.FontStyle;
if (run.FontFamily != this.FontFamily)
run.FontFamily = this.FontFamily;
if (run.FontSize != this.FontSize)
run.FontSize = this.FontSize;
if (run.FontStretch != this.FontStretch)
run.FontStretch = this.FontStretch;
if (run.FontWeight != this.FontWeight)
run.FontWeight = this.FontWeight;
if (run.Foreground != this.Foreground)
run.Foreground = this.Foreground;
if (span != null)
{
span.Inlines.Add(run);
}
else if (paragraph != null)
{
paragraph.Inlines.Add(run);
}
RenderChildren(node, paragraph, span);
}