Share via


_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)

Syntax

'Declaration
Function ComputeStatistics ( _
    Statistic As WdStatistic, _
    ByRef IncludeFootnotesAndEndnotes As Object _
) As Integer
'Usage
Dim instance As _Document
Dim Statistic As WdStatistic
Dim IncludeFootnotesAndEndnotes As Object
Dim returnValue As Integer

returnValue = instance.ComputeStatistics(Statistic, _
    IncludeFootnotesAndEndnotes)
int ComputeStatistics(
    WdStatistic Statistic,
    ref Object IncludeFootnotesAndEndnotes
)

Parameters

  • IncludeFootnotesAndEndnotes
    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

Remarks

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.

See Also

Reference

_Document Interface

_Document Members

Microsoft.Office.Interop.Word Namespace