Dear Spire support team,
Could you please help me create Multi-level List which combine number, letter and bullet like attachment file? I also need to set heading to them too.
Thank you very much!
Document doc = new Document();
Section section = doc.AddSection();
ListStyle listStyle = new ListStyle(doc, ListType.Numbered);
listStyle.Name = "list1";
listStyle.Levels[0].PatternType = ListPatternType.UpRoman;
listStyle.Levels[0].StartAt = 1;
listStyle.Levels[1].PatternType = ListPatternType.UpLetter;
listStyle.Levels[1].StartAt = 1;
listStyle.Levels[2].PatternType = ListPatternType.Arabic;
listStyle.Levels[2].StartAt = 1;
doc.ListStyles.Add(listStyle);
Paragraph paragraph = section.AddParagraph();
paragraph.AppendText("Paragraph1");
paragraph.Format.OutlineLevel = OutlineLevel.Level1;
paragraph.ListFormat.ApplyStyle(listStyle.Name);
paragraph.ListFormat.ListLevelNumber = 0;
paragraph = section.AddParagraph();
paragraph.AppendText("Paragraph2");
paragraph.Format.OutlineLevel = OutlineLevel.Level2;
paragraph.ListFormat.ApplyStyle(listStyle.Name);
paragraph.ListFormat.ListLevelNumber = 1;
paragraph = section.AddParagraph();
paragraph.AppendText("Paragraph3");
paragraph.Format.OutlineLevel = OutlineLevel.Level3;
paragraph.ListFormat.ApplyStyle(listStyle.Name);
paragraph.ListFormat.ListLevelNumber = 2;
doc.SaveToFile("result.docx");