Table of Contents

Method Count

Namespace
DocWright.Dom.Editing
Assembly
DocWright.Dom.dll

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

document WordDocument

The document.

Returns

IReadOnlyDictionary<string, int>

The count by style id.

Exceptions

ArgumentNullException

document is null.