Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordDocumentStatistics

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Source revision
0eef6a5756b9 with working tree changes

Provides basic statistics for a WordDocument such as page, paragraph, word and image counts. Additional statistics like table or chart counts are also available.

Inheritance

  • object
  • WordDocumentStatistics

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Constructors

public WordDocumentStatistics(WordDocument document) #

Initializes a new instance of the WordDocumentStatistics class.

Parameters

document OfficeIMO.Word.WordDocument required
Parent document.

Properties

public int Pages { get; } #

Gets the total number of pages in the document.

public int Paragraphs { get; } #

Gets the total number of paragraphs in the document.

public int Words { get; } #

Gets the total number of words in the document.

public int Images { get; } #

Gets the total number of images in the document.

public int Tables { get; } #

Gets the total number of tables in the document.

public int Charts { get; } #

Gets the total number of charts in the document.

public int Shapes { get; } #

Gets the total number of shapes in the document.

public int Bookmarks { get; } #

Gets the total number of bookmarks in the document.

public int Lists { get; } #

Gets the total number of lists in the document.

public int Characters { get; } #

Gets the total number of characters in the document (excluding spaces).

public int CharactersWithSpaces { get; } #

Gets the total number of characters in the document including spaces.