i am using aspose 17.8. I want a specific format. of list from aspose.words.Lists
Expected:
- ListItem
(BlackBullet) ListSubItem
ListsSpecifyListLevel.pdf (15.7 KB)
i am using aspose 17.8. I want a specific format. of list from aspose.words.Lists
Expected:
ListsSpecifyListLevel.pdf (15.7 KB)
In your case, we suggest you please create two lists as shown below to achieve your requirement. Hope this helps you.
Document doc = new Document();
List list = doc.Lists.Add(ListTemplate.NumberDefault);
List BulletDefault = doc.Lists.Add(ListTemplate.BulletDefault);
DocumentBuilder builder = new DocumentBuilder(doc);
builder.ListFormat.List = list;
builder.ListFormat.ListLevelNumber = 0;
builder.Writeln("The quick brown fox...");
builder.Writeln("The quick brown fox...");
builder.ListFormat.List = BulletDefault;
builder.ListFormat.ListLevelNumber = 1;
builder.Writeln("jumped over the lazy dog.");
builder.Writeln("jumped over the lazy dog.");
builder.ListFormat.RemoveNumbers();
builder.Document.Save(MyDir + "output.docx");