Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
575
Created bulleted list with multiple indent levels
posted

I need to create a bulleted list that has numbers and letters as follows

 

1.  Blah Blah

2.  Blah Blah

                     a.   Blah

                     b.    Blah

 

 

Is there some sample code that shows how to do this?

Parents
No Data
Reply
  • 37774
    Verified Answer
    posted

    To do this, you can just add a new List element to an IListItem that has already been created

    Report r = new Report();
    IList list = r.AddSection().AddList();
    IListItem item = list.AddItem();
    item.AddText().AddContent("Blah");
    list = item.AddList();
    list.AddItem().AddText().AddContent("SubBlah");

    Perhaps you have more interesting content to add to your list, though [:)]

    -Matt 

Children