---- using Infragistics.Documents.Word;
using ( WordDocumentWriter writer = WordDocumentWriter.Create("Bullet.docx") )
{
// Use inches as the unit of measurement.
writer.Unit = UnitOfMeasurement.Inch;
// Create a BulletProperties object
BulletProperties bulletProps = writer.CreateBulletProperties();
// Set the property values for level zero
bulletProps.Levels[0].NumberingStyle = AutomaticNumberingStyle.Decimal;
bulletProps.Levels[0].Indent = .25f;
// Set the property values for level one
bulletProps.Levels[1].NumberingStyle = AutomaticNumberingStyle.LowerLetter;
bulletProps.Levels[1].Indent = .5f;
// Create a ParagraphProperties object and assign the level zero
// BulletLevelProperties instance we created above to its
// BulletLevel property.
ParagraphProperties pp0 = writer.CreateParagraphProperties();
pp0.BulletLevel = bulletProps.Levels[0];
// Create a ParagraphProperties object and assign the level zero
// BulletLevelProperties instance we created above to its
// BulletLevel property.
ParagraphProperties pp1 = writer.CreateParagraphProperties();
pp1.BulletLevel = bulletProps.Levels[1];
// Start the document.
writer.StartDocument();
// Add three paragraphs, each using the level zero ParagraphProperties.
for ( int i = 1; i $$<=$$ 3; i ++ )
{
writer.StartParagraph(pp0);
writer.AddTextRun(string.Format("Level 0 Item #{0}", i));
writer.EndParagraph();
// Add three paragraphs, each using the level one ParagraphProperties.
for ( int j = 1; j $$<=$$ 3; j ++ )
{
writer.StartParagraph(pp1);
writer.AddTextRun(string.Format("Level 1 Item #{0}", j));
writer.EndParagraph();
}
}
// End the document.
writer.EndDocument();
// Close the writer, which causes the content to be written out.
writer.Close();
}
----