写一个关于它的短语和段落 [英] Write a phrase and a paragraph about it
问题描述
我需要在同一行写下这段代码的pdf:
I need to write in pdf on the same line this code:
pdfDoc.Add(new iTextSharp.text.Paragraph(" Numero:") ); $
pdfDoc.Add(new iTextSharp.text.Phrase(this.comboBox2.Text.Trim()));
pdfDoc.Add(new iTextSharp.text.Paragraph("Numero:"));
pdfDoc.Add(new iTextSharp.text.Phrase(this.comboBox2.Text.Trim()));
我需要加入这两个因此它们出现在同一条线上。
I need to join these two so that they appear on the same line.
推荐答案
看起来你想要在段落前面显示一行,如果是这样的话,以下帖子应该有所帮助:
It looks like you want to show line in front of paragraph if that's the case the following post should help:
https://developers.itextpdf.com/fr/node/ 1982
你也可以在段对象上连接它们,如:
you can also concatenate those on the paragraph object like:
pdfDoc.Add(new iTextSharp.text.Paragraph("Numero: "+this.comboBox2.Text.Trim()));
<希望它有所帮助!
Hope it helps!
这篇关于写一个关于它的短语和段落的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!