I have code which will replace text with a paragraph
I want this to be aligned and have indent
- Code: Select all
doc.Replace(item.PLACEHOLDER_NUM, value, true, true);
if (item.PLACEHOLDER_NUM == "<19_BILL_TYPE_DESC>")
{
Section sec = doc.Sections[0];
Paragraph para = sec.Paragraphs[0];
para.Format.SetLeftIndent(14);
para.Format.SetRightIndent(14);
}
after text is replaced with para, i want it to be indented on both sides
how do I select the para that doc.Replace just added and add indentation to it.