Is there a way in my code to find out what number Spire will insert into the Word document for a numbered list? I would like to save the generated numbers to a SQL database so I can renumber lists. So if 1.2.3 updated to 1.2.4, I could update the database with the new number.
I tried the sample code from the website and it works great. But I'm not seeing where I can determine the list number before it is inserted. This is part of the example code . . .
ListStyle listStyle = new ListStyle(document, ListType.Numbered);
listStyle.Name = "levelstyle";
listStyle.Levels[0].PatternType = ListPatternType.Arabic;
listStyle.Levels[1].NumberPrefix = "\x0000.";
listStyle.Levels[1].PatternType = ListPatternType.Arabic;
listStyle.Levels[2].NumberPrefix = "\x0000.\x0001.";
listStyle.Levels[2].PatternType = ListPatternType.Arabic;
document.ListStyles.Add(listStyle);
Paragraph paragraph = section.AddParagraph();
paragraph.AppendText("The first item");
paragraph.ApplyStyle(BuiltinStyle.Heading1);
paragraph.ListFormat.ApplyStyle("levelstyle");
Is this possible?