How to come out of an indented level of a numbered list without immediately triggering the next sequential number of the outdented level?
In other words, I’ve got:
builder.Writeln(" Some numbered text on ListLevel 0" & ControlChar.LineBreak)
builder.ListFormat.ListIndent()
ABCList()
'this lists a bunch of things on ListLevel 1
builder.ListFormat.ListOutdent()
builder.Writeln("This needs to be more text on ListLevel 0 without it being numbered.")
I can see how to stop numbering, but not how to stop and then resume. Thanks in advance for your attention.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
// Create a list.
List list = doc.Lists.Add(ListTemplate.NumberArabicDot);
// Modify list if required.
list.ListLevels[0].NumberStyle = NumberStyle.Arabic;
list.ListLevels[0].NumberFormat = "\u0000)";
list.ListLevels[0].NumberPosition = 0;
list.ListLevels[0].TextPosition = 20;
list.ListLevels[0].TabPosition = 20;
list.ListLevels[1].NumberStyle = NumberStyle.Arabic;
list.ListLevels[1].NumberFormat = "\u0000.\u0001)";
list.ListLevels[1].NumberPosition = 20;
list.ListLevels[1].TextPosition = 50;
list.ListLevels[1].TabPosition = 50;
// Create few items.
builder.ListFormat.List = list;
builder.Writeln("This is the first level");
builder.ListFormat.ListIndent();
builder.Writeln("This needs to be more text on ListLevel 0 without it being numbered.");
// Stop buildign the list.
builder.ListFormat.RemoveNumbers();
builder.Writeln("This needs to be more text on ListLevel 0 without it being numbered.");
// Start buildign the list.
builder.CurrentParagraph.ListFormat.List = list;
builder.ListFormat.ListOutdent();
builder.Writeln("This is the first level again");
builder.ListFormat.ListIndent();
builder.Writeln("Test");
// Stop buildign the list.
builder.ListFormat.RemoveNumbers();
doc.Save("Test\\out.doc");