Text above and below the line

How i can create line and insert Text above and below the line?
image.png (877 Bytes)

@azamatik471

Please use following simple code example to insert the text and line into document.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;
builder.Writeln("Some text");
builder.InsertHorizontalRule();
builder.Writeln("Some text");
doc.Save(MyDir + "output.docx");

If this does not help you, please share some more detail about your requirement along with input and expected output documents. We will then provide you more information on it.