This documentation is archived and is not being maintained.

_Document.ComputeStatistics Method

Returns a statistic based on the contents of the specified document.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

int ComputeStatistics(
	WdStatistic Statistic,
	ref Object IncludeFootnotesAndEndnotes


Type: Microsoft.Office.Interop.Word.WdStatistic
Required WdStatistic.
Type: System.Object%
Optional Object. True to include footnotes and endnotes when computing statistics. If this argument is omitted, the default value is False.

Return Value

Type: System.Int32

Some of the WdStatistic constants may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.