Pretty straightforward question I think:
Is there any way to add a custom image for bullet lists using the DocumentBuilder API?
Been scouring the documentation and forums and am starting to think that while this is possible in the Office application, it’s not yet supported by your API.
Thanks!
Todd
Hi
Thanks for your request. Unfortunately, currently there is no way to create image bullets using Aspose.Words. I will notify you as soon as such feature is implemented.
However, I think, as a workaround, you can define list style in in the Word document with image bullets and then apply this style using Aspose.Words. For example, see the following code:
// Open document.
Document doc = new Document(@"Test001\in.doc");
// Create DocuemntBuilder object, which will help us to manipulate nodes.
DocumentBuilder builder = new DocumentBuilder(doc);
// Create new list from style defined in the document
List list = doc.Lists.Add(doc.Styles["myListStyle"]);
// Apply List to some paragraph.
builder.ListFormat.List = list;
// Insert few items.
builder.Writeln("item1");
builder.Writeln("item2");
builder.Writeln("item3");
builder.Writeln("item4");
builder.Write("item5");
// Save output document.
doc.Save(@"Test001\out.doc");
Hope this helps.
Best regards.