Condividi tramite


Document.ComputeStatistics(WdStatistic, Object) Method

Definition

Gets a statistic based on the contents of the document.

public int ComputeStatistics (Microsoft.Office.Interop.Word.WdStatistic Statistic, ref object IncludeFootnotesAndEndnotes);
abstract member ComputeStatistics : Microsoft.Office.Interop.Word.WdStatistic * obj -> int
Public Function ComputeStatistics (Statistic As WdStatistic, Optional ByRef IncludeFootnotesAndEndnotes As Object) As Integer

Parameters

Statistic
WdStatistic

A WdStatistic.

IncludeFootnotesAndEndnotes
Object

true to include footnotes and endnotes when computing statistics. The default value is false.

Returns

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.

Applies to