Share via


Document.ComputeStatistics Method

Gets a statistic based on the contents of the document.

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

Syntax

'Declaration
Function ComputeStatistics ( _
    Statistic As WdStatistic, _
    ByRef IncludeFootnotesAndEndnotes As Object _
) As Integer
int ComputeStatistics(
    WdStatistic Statistic,
    ref Object IncludeFootnotesAndEndnotes
)

Parameters

  • IncludeFootnotesAndEndnotes
    Type: System.Object%
    true to include footnotes and endnotes when computing statistics. The default value is false.

Return Value

Type: System.Int32
The number of items of the type specified by the Statistic parameter that are in the document.

Remarks

Optional Parameters

For information on optional parameters, see Optional Parameters in Office Solutions.

.NET Framework Security

See Also

Reference

Document Interface

Microsoft.Office.Tools.Word Namespace