Hello there.
I want to add a horizontal line that is available in border menu like shown in the image, but I cannot find it anywhere in programming guide.
What is the method for it ? is it implemented ?
Thanks in advance.
Document doc = new Document();
doc.LoadFromFile("test.docx");
Section section = doc.Sections[0];
float width = section.PageSetup.PageSize.Width;
float left = section.PageSetup.Margins.Left;
float right = section.PageSetup.Margins.Right;
section.Paragraphs[2].AppendShape(width-left-right, 0,ShapeType.Line);
doc.SaveToFile("result.docx",FileFormat.Docx);
paragraph.AppendHorizonalLine();