Method Count
Count(WordDocument)
Counts the uses of each style: for a paragraph style the paragraphs of it (a paragraph naming no style counts for the default paragraph style), for a character style each stretch of a paragraph's consecutive runs of it, for a table style the tables of it. A style the text does not use is absent.
public static IReadOnlyDictionary<string, int> Count(WordDocument document)
Parameters
documentWordDocumentThe document.
Returns
- IReadOnlyDictionary<string, int>
The count by style id.
Exceptions
- ArgumentNullException
documentis null.