Beispiel #1
0
        public void TestAppendHR()
        {
            builder.AppendHorizontalRule();
            Assert.AreEqual(1, doc.LastSection.Elements.Count);
            Paragraph paragraph = (Paragraph)doc.LastSection.Elements[0];

            Assert.AreEqual(0, paragraph.Elements.Count);
            Assert.AreEqual(1, paragraph.Format.Borders.Bottom.Width.Point);
        }
 /// <summary>
 /// Render the given thematic break to the PDF document.
 /// </summary>
 /// <param name="renderer">The PDF renderer.</param>
 /// <param name="break">The thematic break to be renderered.</param>
 protected override void Write(PdfBuilder renderer, ThematicBreakBlock thematicBreak)
 {
     renderer.AppendHorizontalRule();
 }