We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Create Lists in Specific format

i am using aspose 17.8. I want a specific format. of list from aspose.words.Lists

  1. ListItem
    (BlackBullet) ListSubItem

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.Document.Save(MyDir + "output.docx");