コード例 #1
0
        protected override void Write(AdfRenderer renderer, ParagraphBlock obj)
        {
            var paragraph = new ParagraphNode();

            renderer.Push(paragraph);
            renderer.WriteLeafInline(obj);
            renderer.Pop();
        }
コード例 #2
0
        protected override void Write(AdfRenderer renderer, HeadingBlock obj)
        {
            var heading = new HeadingNode(obj.Level);

            renderer.Push(heading);
            renderer.WriteLeafInline(obj);
            renderer.Pop();
        }