I am trying to transfer an outline in Microsoft Word 2010 to a spreadsheet in Microsoft Excel 2010. I'm using DocumentFormat.OpenXml.Packing and Documentformat.OpenXml.Wordprocessing
I get the body of the document, and use it to get a list of all the paragraph objects:
var allParagraphs = new List<Paragraph>();
WordprocessingDocument wordprocessingDocument = WordprocessingDocument.Open(wordDocPath.Text, false);
Body body = wordprocessingDocument.MainDocumentPart.Document.Body;
allParagraphs = body.OfType<Paragraph>().ToList();
But I can't seem to find anything that stores the outline numbering that is next to the paragraph. Do I need to be grabbing other objects besides the paragraphs in the document to get the outline numbers, if there are any, for every paragraph?
The outline numbering I'm speaking of appears to the left of these headers in the screenshot below:

Unfortunately, the ParagraphProperties.OutlineLevel is null, even though I know it is part of an outline in the word document.