Class StyleUsage
Which styles a document's text uses, as a styles pane's "in use" view shows them: the body, headers, footers, footnotes and endnotes (shape text included) are counted.
public static class StyleUsage
- Inheritance
-
StyleUsage
- Inherited Members
Methods
- 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.
- Spans(WordDocument, string)
Every use of a style as a span, in document order, counted as Count(WordDocument) counts them (Word's Styles pane "Select All N Instance(s)", Phase 150): a paragraph style's whole paragraphs; a character style's stretches of consecutive runs; a table style's tables. Headers, footers and notes included, as the count is.