Edit Paragraph First Line Indent, Left and Right Indents in Word Document (C# .NET)

I wanted to control the Special format(FirstLineIndent), but it didn’t work,test.Docx (133.9 KB)
that is I can’t get and edit the parameters of screenshot in my test file

foreach (Aspose.Words.Paragraph p in builder.Document.Sections[0].Body.Paragraphs)
{
    p.ParagraphFormat.FirstLineIndent = 10;
    p.ParagraphFormat.LeftIndent = 0;
}

@lovecomputer,

Please check the following properties:

In case the problem still remains, then please compress the following resources into ZIP format and attach the .zip file here for testing:

  • A simplified source Word document
  • Aspose.Words generated output DOCX file showing the undesired behavior
  • Your expected document showing the desired output. You can create expected document manually by using MS Word.

As soon as you get these pieces of information ready, we will then start further investigation into your particular issue and provide you code to achieve the same output by using Aspose.Words.