Method CrossReferenceHeadings
CrossReferenceHeadings(WordDocument)
The headings Word's Cross-reference dialog lists: body paragraphs with text whose outline level (their own, or their style's) is 1 to 9, in document order.
public static IReadOnlyList<Paragraph> CrossReferenceHeadings(this WordDocument document)
Parameters
documentWordDocumentThe document.
Returns
- IReadOnlyList<Paragraph>
The heading paragraphs.
Exceptions
- ArgumentNullException
documentis null.