如何缩进第二行?

时间:2016-03-10 10:06:56

标签: c# itextsharp itext

我想仅缩进第二行,但新行是自动创建的。有人帮忙吗?

string text = "aaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbccccccccccccccccccccccccc";

Rectangle rect = new Rectangle(100, 100, 200, 200);
rect.Border = Rectangle.BOX;
rect.BorderWidth = 0.5f;
rect.BorderColor = BaseColor.RED;
cb.Rectangle(rect);

ColumnText ct = new ColumnText(cb);
ct.SetSimpleColumn(rect);
Paragraph p = new Paragraph();
p.Add(new Chunk(text, bf));
ct.AddElement(p);
ct.Go();

目前的结果:

current result

预期结果:

expect result

0 个答案:

没有答案