using Infragistics.Documents.Word;
using ( WordDocumentWriter writer = WordDocumentWriter.Create("Bullet.docx") )
{
writer.Unit = UnitOfMeasurement.Inch;
BulletProperties bulletProps = writer.CreateBulletProperties();
bulletProps.Levels[0].NumberingStyle = AutomaticNumberingStyle.Decimal;
bulletProps.Levels[0].Indent = .25f;
bulletProps.Levels[1].NumberingStyle = AutomaticNumberingStyle.LowerLetter;
bulletProps.Levels[1].Indent = .5f;
ParagraphProperties pp0 = writer.CreateParagraphProperties();
pp0.BulletLevel = bulletProps.Levels[0];
ParagraphProperties pp1 = writer.CreateParagraphProperties();
pp1.BulletLevel = bulletProps.Levels[1];
writer.StartDocument();
{
writer.StartParagraph(pp0);
writer.AddTextRun(string.Format("Level 0 Item #{0}", i));
writer.EndParagraph();
{
writer.StartParagraph(pp1);
writer.AddTextRun(string.Format("Level 1 Item #{0}", j));
writer.EndParagraph();
}
}
writer.EndDocument();
writer.Close();
}