title: Inserting continued numbered list of paragraphs in openxml
body: <p>I have a word document with numbered list paragraph in it.
  For example </p>
  
  <ol>
  <li>List item</li>
  <li>Google News is a news aggregator and app developed by Google. It presents a 
  continuous, customizable flow of articles organized from thousands of 
  publishers.</li>
  <li>Paragraph 3.</li>
  </ol>
  
  <p>My requirement is to continue to insert two more numbered lists 4., 5. etc paragraphs(with text). And also should retain the previous paragraph formatting.</p>
  
  <p>With the current code the numbering list is starting from 1. instead of 4. Not getting where I am wrong.</p>
  
  <pre><code>NumberingDefinitionsPart numberingPart = Document.MainDocumentPart.NumberingDefinitionsPart;
  var abstractNumId = numberingPart.Numbering.Elements&lt;AbstractNum&gt;().Count() + 1;
  AbstractNum abstractNum1 = new AbstractNum() { AbstractNumberId = abstractNumId };
  abstractNum1.SetAttribute(new OpenXmlAttribute("w15", "restartNumberingAfterBreak", "http://schemas.microsoft.com/office/word/2012/wordml", "0"));
  
  Paragraph paragraph15 = new Paragraph() { RsidParagraphMarkRevision = "005B5111", RsidParagraphAddition = "0012034F", RsidParagraphProperties = "005B5111", RsidRunAdditionDefault = "004A6864", ParagraphId = "555A4D6E", TextId = "49553577" };
  
  ParagraphProperties paragraphProperties11 = new ParagraphProperties();
  ParagraphStyleId paragraphStyleId11 = new ParagraphStyleId() { Val = "ListParagraph" };
  Level level2 = new Level() { LevelIndex = 6, TemplateCode = "04090019", Tentative = true };
  StartNumberingValue startNumberingValue2 = new StartNumberingValue() { Val = 1 };
  NumberingFormat numberingFormat2 = new NumberingFormat() { Val = NumberFormatValues.LowerLetter };
  
  LevelJustification levelJustification2 = new LevelJustification() { Val = LevelJustificationValues.Left };
  
  PreviousParagraphProperties previousParagraphProperties2 = new PreviousParagraphProperties();
  
  NumberingProperties numberingProperties1 = new NumberingProperties();
  NumberingLevelReference numberingLevelReference1 = new NumberingLevelReference() { Val = 0 };
  NumberingId numberingId1 = new NumberingId() { Val = 4 };
  LevelText levelText2 = new LevelText() { Val = "%7." };
  level2.Append(startNumberingValue2);
  level2.Append(numberingFormat2);
  level2.Append(levelText2);
  level2.Append(levelJustification2);
  level2.Append(previousParagraphProperties2);
  
  abstractNum1.Append(level2);
  
  numberingProperties1.Append(numberingLevelReference1);
  numberingProperties1.Append(numberingId1);
  
  ParagraphMarkRunProperties paragraphMarkRunProperties8 = new ParagraphMarkRunProperties();
  RunFonts runFonts54 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" };
  Color color1 = new Color() { Val = "626262" };
  FontSize fontSize56 = new FontSize() { Val = "20" };
  FontSizeComplexScript fontSizeComplexScript6 = new FontSizeComplexScript() { Val = "20" };
  Shading shading1 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "FFFFFF" };
  
  paragraphMarkRunProperties8.Append(runFonts54);
  paragraphMarkRunProperties8.Append(color1);
  paragraphMarkRunProperties8.Append(fontSize56);
  paragraphMarkRunProperties8.Append(fontSizeComplexScript6);
  paragraphMarkRunProperties8.Append(shading1);
  
  paragraphProperties11.Append(paragraphStyleId11);
  paragraphProperties11.Append(numberingProperties1);
  paragraphProperties11.Append(paragraphMarkRunProperties8);
  BookmarkStart bookmarkStart1 = new BookmarkStart() { Name = "_GoBack", Id = "0" };
  BookmarkEnd bookmarkEnd1 = new BookmarkEnd() { Id = "6" };
  
  Run run45 = new Run() { RsidRunProperties = "005B5111" };
  
  RunProperties runProperties41 = new RunProperties();
  RunFonts runFonts55 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" };
  Color color2 = new Color() { Val = "626262" };
  FontSize fontSize57 = new FontSize() { Val = "20" };
  FontSizeComplexScript fontSizeComplexScript7 = new FontSizeComplexScript() { Val = "20" };
  Shading shading2 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "FFFFFF" };
  
  runProperties41.Append(runFonts55);
  runProperties41.Append(color2);
  runProperties41.Append(fontSize57);
  runProperties41.Append(fontSizeComplexScript7);
  runProperties41.Append(shading2);
  Text text21 = new Text();
  text21.Text = "agency or by the Public Records";
  run45.Append(runProperties41);
  run45.Append(text21);
  
  Run run46 = new Run();
  
  RunProperties runProperties42 = new RunProperties();
  RunFonts runFonts56 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" };
  Color color3 = new Color() { Val = "626262" };
  FontSize fontSize58 = new FontSize() { Val = "20" };
  FontSizeComplexScript fontSizeComplexScript8 = new FontSizeComplexScript() { Val = "20" };
  Shading shading3 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "FFFFFF" };
  
  runProperties42.Append(runFonts56);
  runProperties42.Append(color3);
  runProperties42.Append(fontSize58);
  runProperties42.Append(fontSizeComplexScript8);
  runProperties42.Append(shading3);
  Text text22 = new Text();
  text22.Text = ".";
  
  run46.Append(runProperties42);
  run46.Append(text22);
  
  paragraph15.Append(paragraphProperties11);
  paragraph15.Append(bookmarkStart1);
  paragraph15.Append(bookmarkEnd1);
  paragraph15.Append(run45);
  paragraph15.Append(run46);
  Document.MainDocumentPart.Document.Body.Append(paragraph15);
  </code></pre>