示例#1
0
 protected override void Write(FlowDocumentRenderer renderer, ParagraphBlock paragraphBlock)
 {
     renderer.Push(new Span(), paragraphBlock.Inline);
 }
 protected override void Write(FlowDocumentRenderer renderer, HeadingBlock headingBlock)
 {
     renderer.Push(new Span {
         Foreground = new SolidColorBrush(Colors.Red)
     }, headingBlock.Inline);
 }
示例#3
0
 protected override void Write(FlowDocumentRenderer renderer, LiteralInline literalInline)
 {
     renderer.Push(new Run(literalInline.Content.ToString()));
 }