public override void print(IDocumentGenerator dg, int sectionLevel)
 {
     dg.BeginList();
     try
     {
         int listItemIndex = 0;
         foreach (var li in Items)
         {
             dg.BeginListItem(listItemIndex, null);
             try
             {
                 foreach (var p in li.Paragraphs)
                 {
                     p.print(dg, sectionLevel);
                 }
             }
             finally
             {
                 dg.EndListItem(listItemIndex);
             }
             ++listItemIndex;
         }
     }
     finally
     {
         dg.EndList();
     }
 }