How to change bullet colors

How to change bullet colors?

@renebert

Thanks for your inquiry. You need to set ListLevel.Font.Color property to set bullet colors. Please check following sample code, it will help you to accomplish the task.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
            
builder.ListFormat.List = doc.Lists.Add(ListTemplate.BulletCircle);
builder.ListFormat.ListLevel.Font.Color = Color.Red;
builder.Writeln("Main Section 1");

builder.ListFormat.ListIndent();
builder.ListFormat.ListLevel.Font.Color = Color.Green;
builder.ListFormat.ListLevel.NumberStyle = NumberStyle.Bullet;
builder.Writeln("Sub Section1.1 ");
                       

builder.ListFormat.ListOutdent();
builder.Writeln("Main Section 2");

builder.ListFormat.ListIndent();
builder.Writeln("Sub Section 2.1");

builder.ListFormat.RemoveNumbers();