Hello,
para->ListFormat->ListLevel->NumberPosition = 20;
Hello,
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
List list = doc.Lists.Add(ListTemplate.NumberArabicDot);
builder.ListFormat.List = list;
builder.ParagraphFormat.LeftIndent = 36;
builder.Writeln("Some text");
builder.ParagraphFormat.LeftIndent = 50;
builder.Writeln("Some text");
builder.ParagraphFormat.LeftIndent = 70;
builder.Writeln("Some text");
// This is a way to stop list formatting.
builder.ListFormat.List = null;
doc.Save(MyDir + "Out.docx");
Ok so this code (its C++CLI)
Attached is my In.docx and Out.docx. I’m trying to modify each item to get it to change the indent of that particular list item. More generally I’m trying to work out what the relationship between the following are:
Document doc1 = new Document(MyDir + "in.docx");
Paragraph para2 = (Paragraph)doc1.GetChild(NodeType.Paragraph, 1, true);
para2.ParagraphFormat.LeftIndent += 80.5;
Paragraph para3 = (Paragraph)doc1.GetChild(NodeType.Paragraph, 2, true);
para3.ParagraphFormat.LeftIndent -= 13.5;
para3.ParagraphFormat.FirstLineIndent = -9;
doc1.Save(MyDir + "17.4.docx");