Hi There, I’m wondering how to continue a previous list.
I have a document which I wish to start a list, then write a line, then possible insert a table, then write a second list item, write a line, optionally include some other document sections etc.
I’m using a simple helper function to write my first list item (like this):
builder.ListFormat.ApplyNumberDefault(); builder.ParagraphFormat.Style.Font.Bold = true; builder.Writeln(headerText); builder.ListFormat.RemoveNumbers(); builder.InsertBreak(BreakType.LineBreak);
Then as this point I may want to write some other elements, tables, other paragraph text etc but after this conditional output I want to write item 2 of my original list (using the above helper again). Unfortunately at this point I get an entirely new list rather than a continuation, and I can’t seem to find a way to get the numbering to continue (a new list would be ok if the numbering would continue).
So my question is about how I can either continue a previous list or alternatively start a new list and continue the numbering. I’ve attached two simple docs to show the actual and expected document formats.