我想仅缩进第二行,但新行是自动创建的。有人帮忙吗?
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();
目前的结果:
预期结果: